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


Groups > linux.kernel > #1530864 > unrolled thread

Re: [PATCH] iio: humidity: Support acpi probe for hts211

Started byJonathan Cameron <jic23@kernel.org>
First post2016-11-27 12:30 +0100
Last post2016-11-27 12:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] iio: humidity: Support acpi probe for hts211 Jonathan Cameron <jic23@kernel.org> - 2016-11-27 12:30 +0100

#1530864 — Re: [PATCH] iio: humidity: Support acpi probe for hts211

FromJonathan Cameron <jic23@kernel.org>
Date2016-11-27 12:30 +0100
SubjectRe: [PATCH] iio: humidity: Support acpi probe for hts211
Message-ID<sI5OF-3En-5@gated-at.bofh.it>
On 24/11/16 09:07, Shrirang Bagul wrote:
> Support driver probe by reading unique HID on systems based on ACPI instead
> of DT compatible strings.
> 
> Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders
to play with it.

Thanks,

Jonathan
> ---
>  drivers/iio/humidity/hts221_i2c.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/iio/humidity/hts221_i2c.c b/drivers/iio/humidity/hts221_i2c.c
> index 367ecd5..8333c02 100644
> --- a/drivers/iio/humidity/hts221_i2c.c
> +++ b/drivers/iio/humidity/hts221_i2c.c
> @@ -10,6 +10,7 @@
>  
>  #include <linux/kernel.h>
>  #include <linux/module.h>
> +#include <linux/acpi.h>
>  #include <linux/i2c.h>
>  #include <linux/slab.h>
>  #include "hts221.h"
> @@ -83,6 +84,12 @@ static int hts221_i2c_probe(struct i2c_client *client,
>  	return hts221_probe(iio_dev);
>  }
>  
> +static const struct acpi_device_id hts221_acpi_match[] = {
> +	{"SMO9100", 0},
> +	{ },
> +};
> +MODULE_DEVICE_TABLE(acpi, hts221_acpi_match);
> +
>  static const struct of_device_id hts221_i2c_of_match[] = {
>  	{ .compatible = "st,hts221", },
>  	{},
> @@ -99,6 +106,7 @@ static struct i2c_driver hts221_driver = {
>  	.driver = {
>  		.name = "hts221_i2c",
>  		.of_match_table = of_match_ptr(hts221_i2c_of_match),
> +		.acpi_match_table = ACPI_PTR(hts221_acpi_match),
>  	},
>  	.probe = hts221_i2c_probe,
>  	.id_table = hts221_i2c_id_table,
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web