usb: typec: stusb160x: Make use of i2c_get_match_data()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 26 Sep 2024 12:29:15 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 13:12:15 +0000 (15:12 +0200)
commit82375469755662b9910a22da14027cbef2bca666
treeed5ab2266f9219a056e4a172d5773a8f0cd5e30a
parentd7e75301b5d58f985a128e3875bd2ddf2bd3943b
usb: typec: stusb160x: Make use of i2c_get_match_data()

Get matching data in one step by switching to use i2c_get_match_data().
As a positive side effect the matching data is qualified as a constant.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240926122944.1251923-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/stusb160x.c