Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: stmpe-i2c: Use module_i2c_driver to remove boilerplate

Driver implements feature of module_i2c_driver() manually. Replace it by
that macro instead.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20250725070752.338376-3-alexander.stein@ew.tq-group.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Alexander Stein and committed by
Lee Jones
557b0969 57b1fec0

+1 -12
+1 -12
drivers/mfd/stmpe-i2c.c
··· 122 122 .remove = stmpe_i2c_remove, 123 123 .id_table = stmpe_i2c_id, 124 124 }; 125 - 126 - static int __init stmpe_init(void) 127 - { 128 - return i2c_add_driver(&stmpe_i2c_driver); 129 - } 130 - subsys_initcall(stmpe_init); 131 - 132 - static void __exit stmpe_exit(void) 133 - { 134 - i2c_del_driver(&stmpe_i2c_driver); 135 - } 136 - module_exit(stmpe_exit); 125 + module_i2c_driver(stmpe_i2c_driver); 137 126 138 127 MODULE_DESCRIPTION("STMPE MFD I2C Interface Driver"); 139 128 MODULE_AUTHOR("Rabin Vincent <rabin.vincent@stericsson.com>");