Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1569223

Re: [PATCH] power: supply: max14656: Export I2C and OF device ID as module aliases

From Sebastian Reichel <sre@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] power: supply: max14656: Export I2C and OF device ID as module aliases
Date 2017-01-29 17:10 +0100
Message-ID <t50db-JO-15@gated-at.bofh.it> (permalink)
References <t3vXQ-2l3-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Javier,

On Wed, Jan 25, 2017 at 10:38:55AM -0300, Javier Martinez Canillas wrote:
> 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>

Thanks, queued into power-supply's for-next.

-- Sebastian

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] power: supply: max14656: Export I2C and OF device ID as module aliases Javier Martinez Canillas <javier@osg.samsung.com> - 2017-01-25 14:40 +0100
  Re: [PATCH] power: supply: max14656: Export I2C and OF device ID as  module aliases Sebastian Reichel <sre@kernel.org> - 2017-01-29 17:10 +0100

csiph-web