usb: typec: tcpm: fusb302: Use 'gnu_printf' format notation
commit71be1a8aef82e9fee27eab4eaa818492eb846e29
authorLee Jones <lee.jones@linaro.org>
Fri, 3 Jul 2020 17:41:40 +0000 (3 18:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jul 2020 14:47:00 +0000 (9 16:47 +0200)
tree83d442ed0be52d6b130ca4693c9c4fa89ede8035
parent318ebed29718daa2ffbe7be52ad2279d01efdf08
usb: typec: tcpm: fusb302: Use 'gnu_printf' format notation

Fixes the following W=1 kernel build warning(s):

 drivers/usb/typec/tcpm/fusb302.c: In function ‘fusb302_log’:
 drivers/usb/typec/tcpm/fusb302.c:186:2: warning: function ‘fusb302_log’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
 186 | _fusb302_log(chip, fmt, args);
 | ^~~~~~~~~~~~

Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Yueyao Zhu <yueyao.zhu@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200703174148.2749969-23-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/fusb302.c