mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
extcon: usbc-tusb320: Convert to i2c's .probe_new()
[ Upstream commit5313121b22] The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Stable-dep-of:3adbaa30d9("extcon: usbc-tusb320: Unregister typec port on driver removal") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
112c15d097
commit
e15eb4ec86
@@ -428,8 +428,7 @@ static int tusb320_typec_probe(struct i2c_client *client,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tusb320_probe(struct i2c_client *client,
|
static int tusb320_probe(struct i2c_client *client)
|
||||||
const struct i2c_device_id *id)
|
|
||||||
{
|
{
|
||||||
struct tusb320_priv *priv;
|
struct tusb320_priv *priv;
|
||||||
const void *match_data;
|
const void *match_data;
|
||||||
@@ -502,7 +501,7 @@ static const struct of_device_id tusb320_extcon_dt_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, tusb320_extcon_dt_match);
|
MODULE_DEVICE_TABLE(of, tusb320_extcon_dt_match);
|
||||||
|
|
||||||
static struct i2c_driver tusb320_extcon_driver = {
|
static struct i2c_driver tusb320_extcon_driver = {
|
||||||
.probe = tusb320_probe,
|
.probe_new = tusb320_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "extcon-tusb320",
|
.name = "extcon-tusb320",
|
||||||
.of_match_table = tusb320_extcon_dt_match,
|
.of_match_table = tusb320_extcon_dt_match,
|
||||||
|
|||||||
Reference in New Issue
Block a user