Message ID | 1521642539-4845-12-git-send-email-hernan@vanguardiasur.com.ar (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Hernán,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on iio/togreg]
[also build test ERROR on v4.16-rc6 next-20180322]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Hern-n-Gonzalez/Move-ad7746-out-of-staging/20180323-163331
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: x86_64-randconfig-u0-03231537 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
>> make[5]: *** No rule to make target 'drivers/staging/iio/cdc/ad7746.c', needed by 'drivers/staging/iio/cdc/ad7746.o'.
make[5]: Target '__build' not remade because of errors.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
On Fri, 23 Mar 2018 18:21:58 +0800 kbuild test robot <lkp@intel.com> wrote: > Hi Hernán, > > Thank you for the patch! Yet something to improve: I guess you have figured this out already, but you missed updating the make files in your patch. Jonathan > > [auto build test ERROR on iio/togreg] > [also build test ERROR on v4.16-rc6 next-20180322] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Hern-n-Gonzalez/Move-ad7746-out-of-staging/20180323-163331 > base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg > config: x86_64-randconfig-u0-03231537 (attached as .config) > compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010 > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All errors (new ones prefixed by >>): > > >> make[5]: *** No rule to make target 'drivers/staging/iio/cdc/ad7746.c', needed by 'drivers/staging/iio/cdc/ad7746.o'. > make[5]: Target '__build' not remade because of errors. > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, 21 Mar 2018 11:28:59 -0300 Hernán Gonzalez <hernan@vanguardiasur.com.ar> wrote: > Also modify the proper Kconfigs and move documentation. > > Signed-off-by: Hernán Gonzalez <hernan@vanguardiasur.com.ar> Please disable git move detection for this patch in v2. This only applies when moving drivers out of staging (and possibly only me who asks for it then ;). The point is to allow full review of the driver we are actually moving. That is hard to do if we don't have the code in the email. Anyhow, good work on the series in general. I look forward to V2. Jonathan > --- > .../devicetree/bindings/{staging => }/iio/cdc/ad7746.txt | 0 > drivers/iio/Kconfig | 1 + > drivers/iio/cdc/Kconfig | 16 ++++++++++++++++ > drivers/{staging => }/iio/cdc/ad7746.c | 2 +- > drivers/staging/iio/cdc/Kconfig | 10 ---------- > {drivers/staging => include/linux}/iio/cdc/ad7746.h | 4 ---- > 6 files changed, 18 insertions(+), 15 deletions(-) > rename Documentation/devicetree/bindings/{staging => }/iio/cdc/ad7746.txt (100%) > create mode 100644 drivers/iio/cdc/Kconfig > rename drivers/{staging => }/iio/cdc/ad7746.c (99%) > rename {drivers/staging => include/linux}/iio/cdc/ad7746.h (88%) > > diff --git a/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt b/Documentation/devicetree/bindings/iio/cdc/ad7746.txt > similarity index 100% > rename from Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt > rename to Documentation/devicetree/bindings/iio/cdc/ad7746.txt > diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig > index b3c8c6e..d1c309b 100644 > --- a/drivers/iio/Kconfig > +++ b/drivers/iio/Kconfig > @@ -71,6 +71,7 @@ config IIO_TRIGGERED_EVENT > source "drivers/iio/accel/Kconfig" > source "drivers/iio/adc/Kconfig" > source "drivers/iio/amplifiers/Kconfig" > +source "drivers/iio/cdc/Kconfig" > source "drivers/iio/chemical/Kconfig" > source "drivers/iio/common/Kconfig" > source "drivers/iio/counter/Kconfig" > diff --git a/drivers/iio/cdc/Kconfig b/drivers/iio/cdc/Kconfig > new file mode 100644 > index 0000000..d3a8600 > --- /dev/null > +++ b/drivers/iio/cdc/Kconfig > @@ -0,0 +1,16 @@ > +# > +# CDC drivers > +# > +menu "Capacitance to digital converters" > + > +config AD7746 > + tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" > + depends on I2C > + help > + Say yes here to build support for Analog Devices capacitive sensors. > + (AD7745, AD7746, AD7747) Provides direct access via sysfs. > + > + To compile this driver as a module, choose M here: the > + module will be called ad7746. > + > +endmenu > diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c > similarity index 99% > rename from drivers/staging/iio/cdc/ad7746.c > rename to drivers/iio/cdc/ad7746.c > index c1f76fc..23c9f61 100644 > --- a/drivers/staging/iio/cdc/ad7746.c > +++ b/drivers/iio/cdc/ad7746.c > @@ -18,8 +18,8 @@ > > #include <linux/iio/iio.h> > #include <linux/iio/sysfs.h> > +#include <linux/iio/cdc/ad7746.h> > > -#include "ad7746.h" > > /* > * AD7746 Register Definition > diff --git a/drivers/staging/iio/cdc/Kconfig b/drivers/staging/iio/cdc/Kconfig > index 80211df..a170ab3 100644 > --- a/drivers/staging/iio/cdc/Kconfig > +++ b/drivers/staging/iio/cdc/Kconfig > @@ -23,14 +23,4 @@ config AD7152 > To compile this driver as a module, choose M here: the > module will be called ad7152. > > -config AD7746 > - tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" > - depends on I2C > - help > - Say yes here to build support for Analog Devices capacitive sensors. > - (AD7745, AD7746, AD7747) Provides direct access via sysfs. > - > - To compile this driver as a module, choose M here: the > - module will be called ad7746. > - > endmenu > diff --git a/drivers/staging/iio/cdc/ad7746.h b/include/linux/iio/cdc/ad7746.h > similarity index 88% > rename from drivers/staging/iio/cdc/ad7746.h > rename to include/linux/iio/cdc/ad7746.h > index 2fbcee8..46ff25e 100644 > --- a/drivers/staging/iio/cdc/ad7746.h > +++ b/include/linux/iio/cdc/ad7746.h > @@ -9,10 +9,6 @@ > #ifndef IIO_CDC_AD7746_H_ > #define IIO_CDC_AD7746_H_ > > -/* > - * TODO: struct ad7746_platform_data needs to go into include/linux/iio > - */ > - > struct ad7746_platform_data { > unsigned char exclvl; /*Excitation Voltage Level */ > bool exca_en; /* enables EXCA pin as the excitation output */ -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt b/Documentation/devicetree/bindings/iio/cdc/ad7746.txt similarity index 100% rename from Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt rename to Documentation/devicetree/bindings/iio/cdc/ad7746.txt diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig index b3c8c6e..d1c309b 100644 --- a/drivers/iio/Kconfig +++ b/drivers/iio/Kconfig @@ -71,6 +71,7 @@ config IIO_TRIGGERED_EVENT source "drivers/iio/accel/Kconfig" source "drivers/iio/adc/Kconfig" source "drivers/iio/amplifiers/Kconfig" +source "drivers/iio/cdc/Kconfig" source "drivers/iio/chemical/Kconfig" source "drivers/iio/common/Kconfig" source "drivers/iio/counter/Kconfig" diff --git a/drivers/iio/cdc/Kconfig b/drivers/iio/cdc/Kconfig new file mode 100644 index 0000000..d3a8600 --- /dev/null +++ b/drivers/iio/cdc/Kconfig @@ -0,0 +1,16 @@ +# +# CDC drivers +# +menu "Capacitance to digital converters" + +config AD7746 + tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices capacitive sensors. + (AD7745, AD7746, AD7747) Provides direct access via sysfs. + + To compile this driver as a module, choose M here: the + module will be called ad7746. + +endmenu diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c similarity index 99% rename from drivers/staging/iio/cdc/ad7746.c rename to drivers/iio/cdc/ad7746.c index c1f76fc..23c9f61 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/iio/cdc/ad7746.c @@ -18,8 +18,8 @@ #include <linux/iio/iio.h> #include <linux/iio/sysfs.h> +#include <linux/iio/cdc/ad7746.h> -#include "ad7746.h" /* * AD7746 Register Definition diff --git a/drivers/staging/iio/cdc/Kconfig b/drivers/staging/iio/cdc/Kconfig index 80211df..a170ab3 100644 --- a/drivers/staging/iio/cdc/Kconfig +++ b/drivers/staging/iio/cdc/Kconfig @@ -23,14 +23,4 @@ config AD7152 To compile this driver as a module, choose M here: the module will be called ad7152. -config AD7746 - tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" - depends on I2C - help - Say yes here to build support for Analog Devices capacitive sensors. - (AD7745, AD7746, AD7747) Provides direct access via sysfs. - - To compile this driver as a module, choose M here: the - module will be called ad7746. - endmenu diff --git a/drivers/staging/iio/cdc/ad7746.h b/include/linux/iio/cdc/ad7746.h similarity index 88% rename from drivers/staging/iio/cdc/ad7746.h rename to include/linux/iio/cdc/ad7746.h index 2fbcee8..46ff25e 100644 --- a/drivers/staging/iio/cdc/ad7746.h +++ b/include/linux/iio/cdc/ad7746.h @@ -9,10 +9,6 @@ #ifndef IIO_CDC_AD7746_H_ #define IIO_CDC_AD7746_H_ -/* - * TODO: struct ad7746_platform_data needs to go into include/linux/iio - */ - struct ad7746_platform_data { unsigned char exclvl; /*Excitation Voltage Level */ bool exca_en; /* enables EXCA pin as the excitation output */
Also modify the proper Kconfigs and move documentation. Signed-off-by: Hernán Gonzalez <hernan@vanguardiasur.com.ar> --- .../devicetree/bindings/{staging => }/iio/cdc/ad7746.txt | 0 drivers/iio/Kconfig | 1 + drivers/iio/cdc/Kconfig | 16 ++++++++++++++++ drivers/{staging => }/iio/cdc/ad7746.c | 2 +- drivers/staging/iio/cdc/Kconfig | 10 ---------- {drivers/staging => include/linux}/iio/cdc/ad7746.h | 4 ---- 6 files changed, 18 insertions(+), 15 deletions(-) rename Documentation/devicetree/bindings/{staging => }/iio/cdc/ad7746.txt (100%) create mode 100644 drivers/iio/cdc/Kconfig rename drivers/{staging => }/iio/cdc/ad7746.c (99%) rename {drivers/staging => include/linux}/iio/cdc/ad7746.h (88%)