On Sun, Jan 8, 2017 at 12:57 AM, Sudip Mukherjee
<sudipm.mukherjee@xxxxxxxxx> wrote:
Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which
can be controlled using gpio interface.
Add the gpio specific code.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@xxxxxxxxxxxxxxx>
Will I be able to merge this independently to the GPIO trees
once we are done with review? (Looks like so...)
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Is this really useful?
+#include <linux/device.h>
+#include <linux/gpio.h>
No use:
#include <linux/gpio/driver.h>
ONLY
+static LIST_HEAD(exar_list);
+static DEFINE_MUTEX(exar_list_mtx);
+DEFINE_IDA(ida_index);
What is this? A local list? I can understand the IDA index but in
general, follow the state container pattern instead:
Documentation/driver-model/design-patterns.txt