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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 25 Feb 2015 17:12:49 -0800
From:	Dmitry Torokhov <dmitry.torokhov@...il.com>
To:	Stefan Sauer <ensonic@...gle.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mma8450: add parent device

On Wed, Feb 25, 2015 at 09:53:08AM +0100, Stefan Sauer wrote:
> Add the parent device so that udev can show the full hierarchy. This avoids the
> device showing up under /devices/virtual/input instead of the i2c bus it is
> actually attached to.
> 
> Signed-off-by: Stefan Sauer <ensonic@...gle.com>

Applied, thank you.

> ---
>  drivers/input/misc/mma8450.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/input/misc/mma8450.c b/drivers/input/misc/mma8450.c
> index 59d4dcd..9822877 100644
> --- a/drivers/input/misc/mma8450.c
> +++ b/drivers/input/misc/mma8450.c
> @@ -187,6 +187,7 @@ static int mma8450_probe(struct i2c_client *c,
>  	idev->private		= m;
>  	idev->input->name	= MMA8450_DRV_NAME;
>  	idev->input->id.bustype	= BUS_I2C;
> +	idev->input->dev.parent = &c->dev;
>  	idev->poll		= mma8450_poll;
>  	idev->poll_interval	= POLL_INTERVAL;
>  	idev->poll_interval_max	= POLL_INTERVAL_MAX;
> -- 
> 2.2.0.rc0.207.ga3a616c
> 

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ