Re: [PATCH] w1: ds2482: Add i2c module alias name

From: Evgeniy Polyakov
Date: Fri May 29 2015 - 10:08:06 EST


Hi everyone

27.05.2015, 01:38, "Ludek Hlavacek" <ludek_h@xxxxxxxxx>:
> Add i2c alias to enable autoloading of the module for device specified
> in device-tree.
>
> Signed-off-by: Ludek Hlavacek <ludek_h@xxxxxxxxx>

This looks good to me, Greg, please pull to your tree.
Thank you.

Acked-by: Evgeniy Polyakov <zbr@xxxxxxxxxxx>

> ---
>  drivers/w1/masters/ds2482.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/w1/masters/ds2482.c b/drivers/w1/masters/ds2482.c
> index e76a9b3..a674409 100644
> --- a/drivers/w1/masters/ds2482.c
> +++ b/drivers/w1/masters/ds2482.c
> @@ -93,6 +93,7 @@ static const struct i2c_device_id ds2482_id[] = {
>          { "ds2482", 0 },
>          { }
>  };
> +MODULE_DEVICE_TABLE(i2c, ds2482_id);
>
>  static struct i2c_driver ds2482_driver = {
>          .driver = {
> --
> 2.0.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/