diff options
author | Tom Rix <trix@redhat.com> | 2023-03-19 10:10:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-23 17:34:46 +0100 |
commit | 2271b2727aeca2e09d07f63bc61dc9757c3a5a3c (patch) | |
tree | 3c7555b65cd0fdb39cd307963cb125b5ffd5bbc7 /drivers/usb/typec | |
parent | a88b3c9eef83b605ef7016471a56db9129ae2529 (diff) | |
download | linux-stable-2271b2727aeca2e09d07f63bc61dc9757c3a5a3c.tar.gz linux-stable-2271b2727aeca2e09d07f63bc61dc9757c3a5a3c.tar.bz2 linux-stable-2271b2727aeca2e09d07f63bc61dc9757c3a5a3c.zip |
usb: typec: tcpci_mt6360: remove unused mt6360_tcpc_read16 function
clang with W=1 reports
drivers/usb/typec/tcpm/tcpci_mt6360.c:46:19: error: unused function
'mt6360_tcpc_read16' [-Werror,-Wunused-function]
static inline int mt6360_tcpc_read16(struct regmap *regmap,
^
This function is not used, so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230319141053.1703937-1-trix@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec')
-rw-r--r-- | drivers/usb/typec/tcpm/tcpci_mt6360.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/typec/tcpm/tcpci_mt6360.c b/drivers/usb/typec/tcpm/tcpci_mt6360.c index 1b7c31278ebb..6fa8fd5c8041 100644 --- a/drivers/usb/typec/tcpm/tcpci_mt6360.c +++ b/drivers/usb/typec/tcpm/tcpci_mt6360.c @@ -43,12 +43,6 @@ struct mt6360_tcpc_info { int irq; }; -static inline int mt6360_tcpc_read16(struct regmap *regmap, - unsigned int reg, u16 *val) -{ - return regmap_raw_read(regmap, reg, val, sizeof(u16)); -} - static inline int mt6360_tcpc_write16(struct regmap *regmap, unsigned int reg, u16 val) { |