i3c: Correct the macro module_i3c_i2c_driver
authorNaveen Krishna Chatradhi <nchatrad@amd.com>
Mon, 5 Dec 2022 10:54:13 +0000 (10:54 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 11 Dec 2022 20:20:27 +0000 (21:20 +0100)
commit01744ce9f07f0b76b0b2d30adba2a7c104f1ff2a
tree3f9d69e6f388585f2e2743e28e6f43fc892ab838
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
i3c: Correct the macro module_i3c_i2c_driver

Present definition for module_i3c_i2c_driver uses only the
1st argument i.e., struct i3c_driver.
Irrespective of CONFIG_I3C being enabled/disabled,
struct i2c_driver is never passed to module_driver()

Passing struct i2c_driver as the 4th argument works.

Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com>
Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com>
Link: https://lore.kernel.org/r/20221205105413.937704-1-naveenkrishna.chatradhi@amd.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
include/linux/i3c/device.h