linux/drivers/iio/dac
David Howells 8863b3e785 Annotate hardware config module parameters in drivers/iio/
When the kernel is running in secure boot mode, we lock down the kernel to
prevent userspace from modifying the running kernel image.  Whilst this
includes prohibiting access to things like /dev/mem, it must also prevent
access by means of configuring driver modules in such a way as to cause a
device to access or modify the kernel image.

To this end, annotate module_param* statements that refer to hardware
configuration and indicate for future reference what type of parameter they
specify.  The parameter parser in the core sees this information and can
skip such parameters with an error message if the kernel is locked down.
The module initialisation then runs as normal, but just sees whatever the
default values for those parameters is.

Note that we do still need to do the module initialisation because some
drivers have viable defaults set in case parameters aren't specified and
some drivers support automatic configuration (e.g. PNP or PCI) in addition
to manually coded parameters.

This patch annotates drivers in drivers/iio/.

Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
cc: linux-iio@vger.kernel.org
2017-04-20 12:02:32 +01:00
..
ad5064.c iio:ad5064: Add AD5625/AD5627/AD5645/AD5647/AD4665/AD5657 support 2016-02-08 18:51:26 +00:00
ad5360.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5380.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5421.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
ad5446.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5449.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5504.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
ad5592r-base.c iio: dac: ad5592r: Off by one bug in ad5592r_alloc_channels() 2016-05-04 10:52:43 +01:00
ad5592r-base.h iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs 2016-04-10 14:29:06 +01:00
ad5592r.c iio: dac: ad5592r: Add ACPI support 2016-12-30 17:19:36 +00:00
ad5593r.c iio: dac: ad5593r: Add ACPI support 2016-12-30 17:20:14 +00:00
ad5624r_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5624r.h
ad5686.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5755.c iio: ad5755: fix off-by-one on devnr limit check 2016-08-29 16:15:24 +01:00
ad5761.c iio: add ad5761 DAC driver 2016-01-24 14:46:21 +00:00
ad5764.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5791.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad7303.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
ad8801.c iio: dac: AD8801: add Analog Devices AD8801/AD8803 support 2016-08-29 18:20:01 +01:00
cio-dac.c Annotate hardware config module parameters in drivers/iio/ 2017-04-20 12:02:32 +01:00
dpot-dac.c iio: dpot-dac: DAC driver based on a digital potentiometer 2016-11-13 13:07:15 +00:00
Kconfig iio: dpot-dac: DAC driver based on a digital potentiometer 2016-11-13 13:07:15 +00:00
lpc18xx_dac.c iio: dac: add NXP LPC18xx DAC driver 2016-03-12 18:12:37 +00:00
m62332.c iio:dac:m62332: use dynamic scale 2015-10-11 15:45:17 +01:00
Makefile iio: dpot-dac: DAC driver based on a digital potentiometer 2016-11-13 13:07:15 +00:00
max517.c iio: max517: Add support for MAX520 and MAX521 chips. 2015-03-28 10:57:34 +00:00
max5821.c iio: dac: max5821: Fix module autoload for OF platform driver 2015-09-23 20:23:23 +01:00
mcp4725.c iio: dac: mcp4725: fix odd_ptr_err.cocci warnings 2016-10-23 19:34:27 +01:00
mcp4922.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
vf610_dac.c iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC 2016-02-24 20:52:55 +00:00