summaryrefslogtreecommitdiff
path: root/include/asm-generic/pci_iomap.h
diff options
context:
space:
mode:
authorSong Hongyan <hongyan.song@intel.com>2016-11-03 00:45:48 +0000
committerJonathan Cameron <jic23@kernel.org>2016-11-05 16:25:33 +0000
commitab54163190f236e30772e6e8b4efc56a319ed0a6 (patch)
treee367d162de3d6f512ceeca4626dbaa50d370c93a /include/asm-generic/pci_iomap.h
parent43a07e48af44c153f960e4a204771d5911e10134 (diff)
iio: hid-sensor-attributes: Check sample_frequency/hysteresis write data legitimacy
Neither sample frequency value nor hysteresis value can be set to be a negative number, check and return "Invalid argument" if they are negative. If not do this change, sample_frequency will be set into some unknown value, read hysteresis value after write negative number will return "Invalid argument". Signed-off-by: Song Hongyan <hongyan.song@intel.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/asm-generic/pci_iomap.h')
0 files changed, 0 insertions, 0 deletions