public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Reichel <sre@kernel.org>
To: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH] power: supply: max14656: Export I2C and OF device ID as module aliases
Date: Sun, 29 Jan 2017 16:43:31 +0100	[thread overview]
Message-ID: <20170129154331.3kq3ktenc5dmdkxa@earth> (raw)
In-Reply-To: <1485351535-21066-1-git-send-email-javier@osg.samsung.com>

[-- Attachment #1: Type: text/plain, Size: 771 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2017-01-29 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 13:38 [PATCH] power: supply: max14656: Export I2C and OF device ID as module aliases Javier Martinez Canillas
2017-01-29 15:43 ` Sebastian Reichel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170129154331.3kq3ktenc5dmdkxa@earth \
    --to=sre@kernel.org \
    --cc=javier@osg.samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox