lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210418111146.38e9d35d@jic23-huawei>
Date:   Sun, 18 Apr 2021 11:11:46 +0100
From:   Jonathan Cameron <jic23@...nel.org>
To:     Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc:     Jonathan Cameron <Jonathan.Cameron@...wei.com>,
        Alexandru Ardelean <alexandru.ardelean@...log.com>,
        linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
        Lars-Peter Clausen <lars@...afoo.de>,
        Michael Hennerich <Michael.Hennerich@...log.com>,
        Peter Meerwald-Stadler <pmeerw@...erw.net>
Subject: Re: [PATCH v2 1/1] iio: adc: ad7298: Enable on Intel Galileo Gen 1

On Mon, 12 Apr 2021 16:18:35 +0300
Andy Shevchenko <andriy.shevchenko@...ux.intel.com> wrote:

> Enable ADC on Intel Galileo Gen 1 board.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to hopefully not notice we did anything ;)

Jonathan

> ---
> v2: fixed typo in ID
>  drivers/iio/adc/ad7298.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c
> index 689ecd5dd563..e7e866433090 100644
> --- a/drivers/iio/adc/ad7298.c
> +++ b/drivers/iio/adc/ad7298.c
> @@ -13,6 +13,7 @@
>  #include <linux/regulator/consumer.h>
>  #include <linux/err.h>
>  #include <linux/delay.h>
> +#include <linux/mod_devicetable.h>
>  #include <linux/module.h>
>  #include <linux/interrupt.h>
>  #include <linux/bitops.h>
> @@ -352,6 +353,12 @@ static int ad7298_probe(struct spi_device *spi)
>  	return devm_iio_device_register(&spi->dev, indio_dev);
>  }
>  
> +static const struct acpi_device_id ad7298_acpi_ids[] = {
> +	{ "INT3494", 0 },
> +	{ }
> +};
> +MODULE_DEVICE_TABLE(acpi, ad7298_acpi_ids);
> +
>  static const struct spi_device_id ad7298_id[] = {
>  	{"ad7298", 0},
>  	{}
> @@ -361,6 +368,7 @@ MODULE_DEVICE_TABLE(spi, ad7298_id);
>  static struct spi_driver ad7298_driver = {
>  	.driver = {
>  		.name	= "ad7298",
> +		.acpi_match_table = ad7298_acpi_ids,
>  	},
>  	.probe		= ad7298_probe,
>  	.id_table	= ad7298_id,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ