Re: [PATCH] gpio: add ETRAXFS GPIO driver
From: Rabin Vincent <hidden>
Date: 2015-05-21 19:09:41
Also in:
linux-gpio, lkml
From: Rabin Vincent <hidden>
Date: 2015-05-21 19:09:41
Also in:
linux-gpio, lkml
On Sat, May 16, 2015 at 03:59:27PM +0200, Paul Bolle wrote:
On Sat, 2015-05-16 at 00:27 +0200, Rabin Vincent wrote:quoted
+obj-$(CONFIG_GPIO_ETRAXFS) += gpio-etraxfs.oGPIO_ETRAXFS is a bool symbol, so gpio-etraxfs.o can only be built-in, right?
Right.
quoted
--- /dev/null +++ b/drivers/gpio/gpio-etraxfs.cquoted
+MODULE_DEVICE_TABLE(of, etraxfs_gpio_of_table);quoted
+module_platform_driver(etraxfs_gpio_driver);(A patch was submitted that would allow built-in only code to use builtin_platform_driver(), see https://lkml.org/lkml/2015/5/10/125 .)
Thanks, good to know.
quoted
+MODULE_DESCRIPTION("ETRAX FS GPIO driver"); +MODULE_LICENSE("GPL");But the code this patch adds contains a bit of module specific boilerplate. Was it perhaps your intention to make GPIO_ETRAXFS tristate?
No, the intention is to have it boolean as it is now. I'll remove the unnecessary lines.