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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 5 May 2016 01:18:42 -0700
From:	Matt Ranostay <mranostay@...il.com>
To:	Yong Li <sdliyong@...il.com>
Cc:	Jonathan Cameron <jic23@...nel.org>,
	Hartmut Knaack <knaack.h@....de>,
	Lars-Peter Clausen <lars@...afoo.de>,
	Peter Meerwald-Stadler <pmeerw@...erw.net>,
	fengguang.wu@...el.com, Slawomir Stepien <sst@...zta.fm>,
	dan.carpenter@...cle.comn,
	"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] iio: light apds9960: Add the missing dev.parent

Reviewed-By: Matt Ranostay <mranostay@...il.com>

On Thu, May 5, 2016 at 1:10 AM, Yong Li <sdliyong@...il.com> wrote:
> Without this, the iio:deviceX is missing in the /sys/bus/i2c/devices/0-0039
>
> Signed-off-by: Yong Li <sdliyong@...il.com>
> ---
>  drivers/iio/light/apds9960.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
> index 35928fb..f47cc0a 100644
> --- a/drivers/iio/light/apds9960.c
> +++ b/drivers/iio/light/apds9960.c
> @@ -1010,6 +1010,7 @@ static int apds9960_probe(struct i2c_client *client,
>
>         iio_device_attach_buffer(indio_dev, buffer);
>
> +       indio_dev->dev.parent = &client->dev;
>         indio_dev->info = &apds9960_info;
>         indio_dev->name = APDS9960_DRV_NAME;
>         indio_dev->channels = apds9960_channels;
> --
> 2.5.0
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ