Home
last modified time | relevance | path

Searched hist:"166 e8dbd630af5248c66c29082480d3cc44da010" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/power/supply/
H A Dmax14656_charger_detector.cdiff 166e8dbd630af5248c66c29082480d3cc44da010 Wed Jan 25 14:38:55 CET 2017 Javier Martinez Canillas <javier@osg.samsung.com> power: supply: max14656: Export I2C and OF device ID as module aliases

If the driver is built as a module, I2C module alias information is not
filled so the module won't be autoloaded. Export the I2C and OF devices
ID to the module by using the MODULE_DEVICE_TABLE() macro.

Before this patch:

$ modinfo drivers/power/supply/max14656_charger_detector.ko | grep alias
$

After this patch:

$ modinfo drivers/power/supply/max14656_charger_detector.ko | grep alias
alias: i2c:max14656
alias: of:N*T*Cmaxim,max14656C*
alias: of:N*T*Cmaxim,max14656

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>