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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200522082208.383631-4-alexandru.ardelean@analog.com>
Date:   Fri, 22 May 2020 11:22:07 +0300
From:   Alexandru Ardelean <alexandru.ardelean@...log.com>
To:     <bcm-kernel-feedback-list@...adcom.com>,
        <linux-iio@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <linux-stm32@...md-mailman.stormreply.com>,
        <linux-arm-kernel@...ts.infradead.org>,
        <linux-input@...r.kernel.org>, <linux-aspeed@...ts.ozlabs.org>,
        <linux-samsung-soc@...r.kernel.org>,
        <linux-amlogic@...ts.infradead.org>,
        <linux-mediatek@...ts.infradead.org>,
        <linux-arm-msm@...r.kernel.org>,
        <linux-rockchip@...ts.infradead.org>, <linux-pm@...r.kernel.org>,
        <platform-driver-x86@...r.kernel.org>, <devel@...verdev.osuosl.org>
CC:     <vilhelm.gray@...il.com>, <syednwaris@...il.com>,
        <fabrice.gasnier@...com>, <mcoquelin.stm32@...il.com>,
        <alexandre.torgue@...com>, <jic23@...nel.org>,
        <dan@...obertson.com>, <jikos@...nel.org>,
        <srinivas.pandruvada@...ux.intel.com>, <linus.walleij@...aro.org>,
        <wens@...e.org>, <hdegoede@...hat.com>, <rjui@...adcom.com>,
        <sbranden@...adcom.com>, <peda@...ntia.se>, <kgene@...nel.org>,
        <krzk@...nel.org>, <shawnguo@...nel.org>, <s.hauer@...gutronix.de>,
        <ak@...klinger.de>, <paul@...pouillou.net>, <milo.kim@...com>,
        <vz@...ia.com>, <slemieux.tyco@...il.com>, <khilman@...libre.com>,
        <matthias.bgg@...il.com>, <agross@...nel.org>,
        <bjorn.andersson@...aro.org>, <heiko@...ech.de>,
        <orsonzhai@...il.com>, <baolin.wang7@...il.com>,
        <zhang.lyra@...il.com>, <mripard@...nel.org>, <tduszyns@...il.com>,
        <rmfrfs@...il.com>, <lorenzo.bianconi83@...il.com>,
        <ktsai@...ellamicro.com>, <songqiang1304521@...il.com>,
        <tomislav.denis@....com>, <eajames@...ux.ibm.com>,
        <dmitry.torokhov@...il.com>, <coproscefalo@...il.com>,
        Alexandru Ardelean <alexandru.ardelean@...log.com>
Subject: [PATCH 4/5] iio: light: lm3533-als: remove explicit parent assignment

This assignment is the more peculiar of the bunch as it assigns the parent
of the platform-device's device (i.e. pdev->dev.parent) as the IIO device's
parent.

It's unclear whether this is intentional or not.
Hence it is in it's own patch.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@...log.com>
---
 drivers/iio/light/lm3533-als.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/light/lm3533-als.c b/drivers/iio/light/lm3533-als.c
index bc196c212881..0f380ec8d30c 100644
--- a/drivers/iio/light/lm3533-als.c
+++ b/drivers/iio/light/lm3533-als.c
@@ -852,7 +852,6 @@ static int lm3533_als_probe(struct platform_device *pdev)
 	indio_dev->channels = lm3533_als_channels;
 	indio_dev->num_channels = ARRAY_SIZE(lm3533_als_channels);
 	indio_dev->name = dev_name(&pdev->dev);
-	indio_dev->dev.parent = pdev->dev.parent;
 	indio_dev->modes = INDIO_DIRECT_MODE;
 
 	als = iio_priv(indio_dev);
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ