Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1700671
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver |
| Date | 2017-08-01 08:50 +0200 |
| Message-ID | <u9za9-8fB-11@gated-at.bofh.it> (permalink) |
| References | <u0lSN-2dT-1@gated-at.bofh.it> <u0lSO-2dT-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jul 6, 2017 at 10:49 PM, Anatolij Gustschin <agust@denx.de> wrote: > Add driver for CBUS pins on FT232H. The driver supports setting > GPIO direction and getting/setting CBUS 0-3 pin value. The CBUS > pins have to be enabled by configuring I/O mode in the FTDI EEPROM. > > Signed-off-by: Anatolij Gustschin <agust@denx.de> (...) > + select GPIO_GENERIC You do not seem to be using this. > +#include <linux/gpio.h> This include should not be needed. If it is, something is wrong. > +#include <linux/gpio/driver.h> Drivers should only include this. > +#include <linux/platform_device.h> > +#include <linux/slab.h> > +#include <linux/types.h> > +#include <linux/usb.h> Why is this needed if the device is abstracted behind an MFD interface? > +#include <linux/mfd/ftdi/ftdi.h> I.e. this? Apart from these small things it looks like a solid and nice driver, do you plan to merge this into MFD or should I merge it? Since it depends on the Kconfig symbol I guess I can merge it orthogonally if I am sure Lee will pick the MFD part. Yours, Linus Walleij
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver Linus Walleij <linus.walleij@linaro.org> - 2017-08-01 08:50 +0200
Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver Johan Hovold <johan@kernel.org> - 2017-08-01 11:30 +0200
Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver Linus Walleij <linus.walleij@linaro.org> - 2017-08-07 11:30 +0200
csiph-web