From: Sean Young <sean@mess.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: Re: [PATCH v1 1/1] media: ir-spi: Remove unused of_gpio.h
Date: Tue, 5 Mar 2024 09:15:28 +0000 [thread overview]
Message-ID: <ZebisPvr_eFPm_0o@gofer.mess.org> (raw)
In-Reply-To: <20240304180331.1200827-1-andriy.shevchenko@linux.intel.com>
On Mon, Mar 04, 2024 at 08:03:31PM +0200, Andy Shevchenko wrote:
> of_gpio.h is deprecated and subject to remove.
> The driver doesn't use it, simply remove the unused header.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/media/rc/ir-spi.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/media/rc/ir-spi.c b/drivers/media/rc/ir-spi.c
> index bbc81bed4f90..8afc3cd70b87 100644
> --- a/drivers/media/rc/ir-spi.c
> +++ b/drivers/media/rc/ir-spi.c
> @@ -8,7 +8,6 @@
> #include <linux/fs.h>
> #include <linux/module.h>
> #include <linux/mutex.h>
> -#include <linux/of_gpio.h>
This does not build, I get errors saying of_property_read_bool() is undefined.
I think we need linux/of.h instead of linux/of_gpio.h.
Sean
> #include <linux/regulator/consumer.h>
> #include <linux/spi/spi.h>
> #include <media/rc-core.h>
> --
> 2.43.0.rc1.1.gbec44491f096
next prev parent reply other threads:[~2024-03-05 9:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-04 18:03 [PATCH v1 1/1] media: ir-spi: Remove unused of_gpio.h Andy Shevchenko
2024-03-05 9:15 ` Sean Young [this message]
2024-03-05 17:37 ` Andy Shevchenko
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=ZebisPvr_eFPm_0o@gofer.mess.org \
--to=sean@mess.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox