From: Matti Vaittinen <mazziesaccount@gmail.com>
To: linux@treblig.org, jic23@kernel.org, lars@metafoo.de,
marius.cristea@microchip.com
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] iio: light: rohm-bu27034: remove unused struct 'bu27034_result'
Date: Thu, 23 May 2024 08:50:22 +0300 [thread overview]
Message-ID: <eb24b250-6654-4f2a-ba03-3eca2cfa543b@gmail.com> (raw)
In-Reply-To: <20240522230457.478156-4-linux@treblig.org>
Thanks David!
On 5/23/24 02:04, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 'bu27034_result' is unused since the original
> commit e52afbd61039 ("iio: light: ROHM BU27034 Ambient Light Sensor").
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
As I wrote earlier, this driver in it's current form is pretty much
useless. The BU27034NUC was cancelled and, as far as I know, never
produced "en masse". The replacement, BU27034ANUC, has undergone
somewhat meaningful changes like removal of one of the data channels -
so this driver is not producing correct results on that IC.
I have promised to rework this driver to support the new variant, and I
have this new HW on my table - but I am currently negotiating to be able
to provide an open-source Lux calculation formula in the driver... This
is causing some slight delay.
So, I think applying this patch is still worth :)
Acked-by: Matti Vaittinen <mazziesaccount@gmail.com>
> ---
> drivers/iio/light/rohm-bu27034.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/iio/light/rohm-bu27034.c b/drivers/iio/light/rohm-bu27034.c
> index bf3de853a811..4937bf6fa046 100644
> --- a/drivers/iio/light/rohm-bu27034.c
> +++ b/drivers/iio/light/rohm-bu27034.c
> @@ -223,12 +223,6 @@ struct bu27034_data {
> } scan;
> };
>
> -struct bu27034_result {
> - u16 ch0;
> - u16 ch1;
> - u16 ch2;
> -};
> -
> static const struct regmap_range bu27034_volatile_ranges[] = {
> {
> .range_min = BU27034_REG_SYSTEM_CONTROL,
--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~
next prev parent reply other threads:[~2024-05-23 5:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-22 23:04 [PATCH 0/3] IIO dead struct cleanup linux
2024-05-22 23:04 ` [PATCH 1/3] iio: accel: bmi088: remove unused struct 'bmi088_scale_info' linux
2024-05-22 23:04 ` [PATCH 2/3] iio: adc: pac1934: remove unused struct 'samp_rate_mapping' linux
2024-05-22 23:04 ` [PATCH 3/3] iio: light: rohm-bu27034: remove unused struct 'bu27034_result' linux
2024-05-23 5:50 ` Matti Vaittinen [this message]
2024-05-25 16:41 ` [PATCH 0/3] IIO dead struct cleanup Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eb24b250-6654-4f2a-ba03-3eca2cfa543b@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=marius.cristea@microchip.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.