usb: typec: tipd: rely on i2c_get_match_data()
authorJavier Carrasco <javier.carrasco@wolfvision.net>
Mon, 29 Apr 2024 13:35:59 +0000 (15:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2024 09:36:51 +0000 (10:36 +0100)
commit344f74cf531d90245e1296b3ffbaa7df99dd18f6
treef94aaa74a97cda86f54aa07170c61ce42d2dfec5
parent409c1cfb5a803f3cf2d17aeaf75c25c4be951b07
usb: typec: tipd: rely on i2c_get_match_data()

The first thing i2c_get_match_data() does is calling
device_get_match_data(), which already checks if there is a fwnode.

Remove explicit usage of device_get_match_data() as it is already
included in i2c_get_match_data().

Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240429-tps6598x_fix_event_handling-v3-3-4e8e58dce489@wolfvision.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c