On 06/11/2013 03:52 PM, Alexandre Relange wrote: > adds the category of mechanical sensors (switches,...) > > Signed-off-by: Alexandre Relange <alexandre@xxxxxxxxxxx> Support like this should be introduced with the first driver, i.e. in the same patch in my view. The outstanding issue not answered yet for these is how a mechanical switch is different from a general purpose input? > --- > drivers/iio/Kconfig | 1 + > drivers/iio/Makefile | 1 + > drivers/iio/mechanical/Kconfig | 6 ++++++ > drivers/iio/mechanical/Makefile | 3 +++ > 4 files changed, 11 insertions(+) > create mode 100644 drivers/iio/mechanical/Kconfig > create mode 100644 drivers/iio/mechanical/Makefile > > diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig > index b2f963b..dbed2f1 100644 > --- a/drivers/iio/Kconfig > +++ b/drivers/iio/Kconfig > @@ -70,5 +70,6 @@ source "drivers/iio/gyro/Kconfig" > source "drivers/iio/imu/Kconfig" > source "drivers/iio/light/Kconfig" > source "drivers/iio/magnetometer/Kconfig" > +source "drivers/iio/mechanical/Kconfig" > > endif # IIO > diff --git a/drivers/iio/Makefile b/drivers/iio/Makefile > index a0e8cdd..78ec75b 100644 > --- a/drivers/iio/Makefile > +++ b/drivers/iio/Makefile > @@ -21,3 +21,4 @@ obj-y += frequency/ > obj-y += imu/ > obj-y += light/ > obj-y += magnetometer/ > +obj-y += mechanical/ > diff --git a/drivers/iio/mechanical/Kconfig b/drivers/iio/mechanical/Kconfig > new file mode 100644 > index 0000000..b536fa2 > --- /dev/null > +++ b/drivers/iio/mechanical/Kconfig > @@ -0,0 +1,6 @@ > +# > +# Mechanical sensors > +# > +menu "Mechanical sensors" > + > +endmenu > diff --git a/drivers/iio/mechanical/Makefile b/drivers/iio/mechanical/Makefile > new file mode 100644 > index 0000000..716098f > --- /dev/null > +++ b/drivers/iio/mechanical/Makefile > @@ -0,0 +1,3 @@ > +# > +# Makefile for IIO Mechanical sensors > +# > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html