Re: [PATCH 03/11] staging/iio: (iio_hwmon) Basic devicetree support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/31/2013 09:43 PM, Guenter Roeck wrote:
> Add 'iio-hwmon' OF compatibility table entry to enable OF matches.
> 
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Applied to togreg branch of
git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git

Thanks,
> ---
>  drivers/staging/iio/iio_hwmon.c |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/staging/iio/iio_hwmon.c b/drivers/staging/iio/iio_hwmon.c
> index 7f260ea..6a5bc5f 100644
> --- a/drivers/staging/iio/iio_hwmon.c
> +++ b/drivers/staging/iio/iio_hwmon.c
> @@ -165,10 +165,16 @@ static int iio_hwmon_remove(struct platform_device *pdev)
>  	return 0;
>  }
>  
> +static struct of_device_id iio_hwmon_of_match[] = {
> +	{ .compatible = "iio-hwmon", },
> +	{ }
> +};
> +
>  static struct platform_driver __refdata iio_hwmon_driver = {
>  	.driver = {
>  		.name = "iio_hwmon",
>  		.owner = THIS_MODULE,
> +		.of_match_table = iio_hwmon_of_match,
>  	},
>  	.probe = iio_hwmon_probe,
>  	.remove = iio_hwmon_remove,
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux