usb: typec: tcpci_mt6360: remove unused mt6360_tcpc_read16 function
authorTom Rix <trix@redhat.com>
Sun, 19 Mar 2023 14:10:53 +0000 (10:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2023 16:34:46 +0000 (17:34 +0100)
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>
drivers/usb/typec/tcpm/tcpci_mt6360.c

index 1b7c31278ebbef35055ad73b3625605f3649e924..6fa8fd5c8041a6e31d365c61dc6a6f23f82d3f3a 100644 (file)
@@ -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)
 {