linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: pebolle@tiscali.nl (Paul Bolle)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] pinctrl: sunxi: add allwinner A33 PIO controller support
Date: Mon, 11 May 2015 09:22:16 +0200	[thread overview]
Message-ID: <1431328936.2398.67.camel@x220> (raw)
In-Reply-To: <1431240383-12763-3-git-send-email-vishnupatekar0510@gmail.com>

On Sun, 2015-05-10 at 12:16 +0530, Vishnu Patekar wrote:
> --- a/drivers/pinctrl/sunxi/Kconfig
> +++ b/drivers/pinctrl/sunxi/Kconfig

> +

(Unneeded white line.)

> +config PINCTRL_SUN8I_A33
> +	def_bool MACH_SUN8I
> +	select PINCTRL_SUNXI_COMMON

> --- a/drivers/pinctrl/sunxi/Makefile
> +++ b/drivers/pinctrl/sunxi/Makefile

> +obj-$(CONFIG_PINCTRL_SUN8I_A33)		+= pinctrl-sun8i-a33.o

PINCTRL_SUN8I_A33 is a bool symbol, so pinctrl-sun8i-a33.o will never be
part of a module, right?

> --- /dev/null
> +++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-a33.c
> @@ -0,0 +1,513 @@

> +#include <linux/module.h>

> +MODULE_DEVICE_TABLE(of, sun8i_a33_pinctrl_match);
> +
> +static struct platform_driver sun8i_a33_pinctrl_driver = {
> +	.probe	= sun8i_a33_pinctrl_probe,
> +	.driver	= {
> +		.name		= "sun8i-a33-pinctrl",
> +		.of_match_table	= sun8i_a33_pinctrl_match,
> +	},
> +};
> +module_platform_driver(sun8i_a33_pinctrl_driver);

(The series starting at https://lkml.org/lkml/2015/5/10/131 would allow
to use builtin_platform_driver() for  built-in only code.)

> +MODULE_AUTHOR("Vishnu Patekar <vishnupatekar0510@gmail.com>");
> +MODULE_DESCRIPTION("Allwinner a33 pinctrl driver");
> +MODULE_LICENSE("GPL");

This adds some module specific boilerplate. Was it perhaps your
intention to make PINCTRL_SUN8I_A33 a tristate symbol? If I understand
Maxime correctly drivers like these can be made modular (see
https://lkml.org/lkml/2015/5/9/96 ).

Thanks,


Paul Bolle

  parent reply	other threads:[~2015-05-11  7:22 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-10  6:46 [PATCH 0/6] Introduce Allwinner A33 support Vishnu Patekar
2015-05-10  6:46 ` [PATCH 1/6] ARM: sunxi: Add Machine support for A33 Vishnu Patekar
2015-05-10  8:49   ` Hans de Goede
2015-05-10 10:33   ` Maxime Ripard
2015-05-11  8:52     ` Vishnu Patekar
2015-05-10  6:46 ` [PATCH 2/6] pinctrl: sunxi: add allwinner A33 PIO controller support Vishnu Patekar
2015-05-10  8:50   ` Hans de Goede
2015-05-10  9:00     ` Chen-Yu Tsai
2015-05-10  9:10       ` Hans de Goede
2015-05-10 10:34   ` Maxime Ripard
2015-05-11  7:22   ` Paul Bolle [this message]
2015-05-10  6:46 ` [PATCH 3/6] clk: sunxi: Add A33 clock for compilation Vishnu Patekar
2015-05-10 10:17   ` Maxime Ripard
2015-05-11  8:53     ` Vishnu Patekar
2015-07-17  8:57       ` Chen-Yu Tsai
2015-07-17  9:09         ` Maxime Ripard
2015-07-17  9:13           ` Chen-Yu Tsai
2015-05-10  6:46 ` [PATCH 4/6] ARM: dts: sunxi: add common sun8i dtsi Vishnu Patekar
2015-05-10  8:52   ` Hans de Goede
2015-05-10 10:41   ` Maxime Ripard
2015-05-11 11:18     ` Vishnu Patekar
2015-05-10  6:46 ` [PATCH 5/6] ARM: dts: sunxi: Add Allwinner A33 DTSI Vishnu Patekar
2015-05-10  8:53   ` Hans de Goede
2015-05-10  9:33     ` Vishnu Patekar
2015-05-10  9:54       ` Hans de Goede
2015-05-10 10:43   ` Maxime Ripard
2015-05-10  6:46 ` [PATCH 6/6] ARM: dts: sun8i: Add ET-Q8 A33 support Vishnu Patekar
2015-05-10  8:54   ` Hans de Goede
     [not found]     ` <CAEzqOZuS4m8kDhG0RpLRGBXbnFXLPKJB8D78_Dc02vRkfwvTUA@mail.gmail.com>
2015-05-11  8:24       ` Hans de Goede
2015-05-11  8:27         ` Hans de Goede
2015-05-11 11:15           ` Vishnu Patekar
2015-05-11 11:16             ` Hans de Goede
2015-05-10 10:47   ` Maxime Ripard
2015-05-12 11:37 ` [PATCH 0/6] Introduce Allwinner " Linus Walleij

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=1431328936.2398.67.camel@x220 \
    --to=pebolle@tiscali.nl \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).