* [PATCH v2] hte: tegra-194: Use proper includes
@ 2023-01-17 8:41 Linus Walleij
2023-04-20 20:19 ` Dipen Patel
2023-04-20 21:22 ` Dipen Patel
0 siblings, 2 replies; 7+ messages in thread
From: Linus Walleij @ 2023-01-17 8:41 UTC (permalink / raw)
To: Dipen Patel; +Cc: linux-gpio, Linus Walleij
The test driver uses the gpiod consumer API so include the right
<linux/gpio/consumer.h> header. This may cause a problem with
struct of_device_id being implcitly pulled in by the legacy
header <linux/gpio.h> so include <linux/mod_devicetable.h>
explicitly as well.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
ChangeLog v1->v2:
- Its mod_devicetable not mod_device_table oops.
---
drivers/hte/hte-tegra194-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/hte/hte-tegra194-test.c b/drivers/hte/hte-tegra194-test.c
index 5d776a185bd6..79eb866558d3 100644
--- a/drivers/hte/hte-tegra194-test.c
+++ b/drivers/hte/hte-tegra194-test.c
@@ -6,10 +6,11 @@
*/
#include <linux/err.h>
+#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/interrupt.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
#include <linux/timer.h>
#include <linux/platform_device.h>
#include <linux/workqueue.h>
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2] hte: tegra-194: Use proper includes
2023-01-17 8:41 [PATCH v2] hte: tegra-194: Use proper includes Linus Walleij
@ 2023-04-20 20:19 ` Dipen Patel
2023-04-20 20:48 ` Linus Walleij
2023-04-20 21:22 ` Dipen Patel
1 sibling, 1 reply; 7+ messages in thread
From: Dipen Patel @ 2023-04-20 20:19 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-gpio
On 1/17/23 12:41 AM, Linus Walleij wrote:
> The test driver uses the gpiod consumer API so include the right
> <linux/gpio/consumer.h> header. This may cause a problem with
> struct of_device_id being implcitly pulled in by the legacy
> header <linux/gpio.h> so include <linux/mod_devicetable.h>
> explicitly as well.
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v1->v2:
> - Its mod_devicetable not mod_device_table oops.
> ---
> drivers/hte/hte-tegra194-test.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/hte/hte-tegra194-test.c b/drivers/hte/hte-tegra194-test.c
> index 5d776a185bd6..79eb866558d3 100644
> --- a/drivers/hte/hte-tegra194-test.c
> +++ b/drivers/hte/hte-tegra194-test.c
> @@ -6,10 +6,11 @@
> */
>
> #include <linux/err.h>
> +#include <linux/mod_devicetable.h>
> #include <linux/module.h>
> #include <linux/moduleparam.h>
> #include <linux/interrupt.h>
> -#include <linux/gpio.h>
> +#include <linux/gpio/consumer.h>
> #include <linux/timer.h>
> #include <linux/platform_device.h>
> #include <linux/workqueue.h>
I am not sure if I have followed up on this patchset. It seems this gives an error mod_devicetable.h not found. Perhaps you meant, linux/mod_devicetable.h instead?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] hte: tegra-194: Use proper includes
2023-04-20 20:19 ` Dipen Patel
@ 2023-04-20 20:48 ` Linus Walleij
2023-04-20 20:54 ` Dipen Patel
0 siblings, 1 reply; 7+ messages in thread
From: Linus Walleij @ 2023-04-20 20:48 UTC (permalink / raw)
To: Dipen Patel; +Cc: linux-gpio
On Thu, Apr 20, 2023 at 10:19 PM Dipen Patel <dipenp@nvidia.com> wrote:
> On 1/17/23 12:41 AM, Linus Walleij wrote:
> > ChangeLog v1->v2:
> > - Its mod_devicetable not mod_device_table oops.
(...)
> > +#include <linux/mod_devicetable.h>
(...)
>
> I am not sure if I have followed up on this patchset. It seems this gives an
> error mod_devicetable.h not found. Perhaps you meant,
> linux/mod_devicetable.h instead?
Hm are you using v1? That had <linux/mod_device_table.h> (one too
much underscore) by mistake, this v2 should work? What is
the output of the compiler?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] hte: tegra-194: Use proper includes
2023-04-20 20:48 ` Linus Walleij
@ 2023-04-20 20:54 ` Dipen Patel
0 siblings, 0 replies; 7+ messages in thread
From: Dipen Patel @ 2023-04-20 20:54 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-gpio
On 4/20/23 1:48 PM, Linus Walleij wrote:
> On Thu, Apr 20, 2023 at 10:19 PM Dipen Patel <dipenp@nvidia.com> wrote:
>> On 1/17/23 12:41 AM, Linus Walleij wrote:
>
>>> ChangeLog v1->v2:
>>> - Its mod_devicetable not mod_device_table oops.
> (...)
>>> +#include <linux/mod_devicetable.h>
> (...)
>>
>> I am not sure if I have followed up on this patchset. It seems this gives an
>> error mod_devicetable.h not found. Perhaps you meant,
>> linux/mod_devicetable.h instead?
>
> Hm are you using v1? That had <linux/mod_device_table.h> (one too
> much underscore) by mistake, this v2 should work? What is
> the output of the compiler?
>
> Yours,
> Linus Walleij
Sorry I referenced v1. This however clash with Arnd's patch (https://www.spinics.net/lists/linux-tegra/msg70013.html) that adds the header.
I guess I should be able to pull your changes with some conflict resolutions. Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] hte: tegra-194: Use proper includes
2023-01-17 8:41 [PATCH v2] hte: tegra-194: Use proper includes Linus Walleij
2023-04-20 20:19 ` Dipen Patel
@ 2023-04-20 21:22 ` Dipen Patel
2023-04-20 21:48 ` Dipen Patel
1 sibling, 1 reply; 7+ messages in thread
From: Dipen Patel @ 2023-04-20 21:22 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-gpio
On 1/17/23 12:41 AM, Linus Walleij wrote:
> The test driver uses the gpiod consumer API so include the right
> <linux/gpio/consumer.h> header. This may cause a problem with
> struct of_device_id being implcitly pulled in by the legacy
> header <linux/gpio.h> so include <linux/mod_devicetable.h>
> explicitly as well.
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
I will push this patch to HTE subsystem tree...
Acked-by: Dipen Patel <dipenp@nvidia.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] hte: tegra-194: Use proper includes
2023-04-20 21:22 ` Dipen Patel
@ 2023-04-20 21:48 ` Dipen Patel
2023-04-21 7:42 ` Linus Walleij
0 siblings, 1 reply; 7+ messages in thread
From: Dipen Patel @ 2023-04-20 21:48 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-gpio
On 4/20/23 2:22 PM, Dipen Patel wrote:
> On 1/17/23 12:41 AM, Linus Walleij wrote:
>> The test driver uses the gpiod consumer API so include the right
>> <linux/gpio/consumer.h> header. This may cause a problem with
>> struct of_device_id being implcitly pulled in by the legacy
>> header <linux/gpio.h> so include <linux/mod_devicetable.h>
>> explicitly as well.
>>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> I will push this patch to HTE subsystem tree...
>
> Acked-by: Dipen Patel <dipenp@nvidia.com>
>
Sorry for spamming your inbox, it seems https://patchwork.kernel.org/project/linux-media/patch/20230208173343.37582-4-andriy.shevchenko@linux.intel.com/
is the latest version of the patch and its been there since Feb 2023. Do you want me to push that patch through HTE sub tree?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] hte: tegra-194: Use proper includes
2023-04-20 21:48 ` Dipen Patel
@ 2023-04-21 7:42 ` Linus Walleij
0 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2023-04-21 7:42 UTC (permalink / raw)
To: Dipen Patel; +Cc: linux-gpio
On Thu, Apr 20, 2023 at 11:48 PM Dipen Patel <dipenp@nvidia.com> wrote:
> On 4/20/23 2:22 PM, Dipen Patel wrote:
> > On 1/17/23 12:41 AM, Linus Walleij wrote:
> >> The test driver uses the gpiod consumer API so include the right
> >> <linux/gpio/consumer.h> header. This may cause a problem with
> >> struct of_device_id being implcitly pulled in by the legacy
> >> header <linux/gpio.h> so include <linux/mod_devicetable.h>
> >> explicitly as well.
> >>
> >> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> > I will push this patch to HTE subsystem tree...
> >
> > Acked-by: Dipen Patel <dipenp@nvidia.com>
> >
> Sorry for spamming your inbox, it seems
> https://patchwork.kernel.org/project/linux-media/patch/20230208173343.37582-4-andriy.shevchenko@linux.intel.com/
> is the latest version of the patch and its been there since Feb 2023.
> Do you want me to push that patch through HTE sub tree?
Yes please! :)
I think Andy's series is partially merged but indeed this one patch
isn't in linux-next. Also it definietly makes things easier with this
patch upstream.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-04-21 7:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-17 8:41 [PATCH v2] hte: tegra-194: Use proper includes Linus Walleij
2023-04-20 20:19 ` Dipen Patel
2023-04-20 20:48 ` Linus Walleij
2023-04-20 20:54 ` Dipen Patel
2023-04-20 21:22 ` Dipen Patel
2023-04-20 21:48 ` Dipen Patel
2023-04-21 7:42 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox