summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-10-15 11:35:00 +0200
committerJonathan Cameron <jic23@kernel.org>2012-10-19 17:12:38 +0200
commit9dbf8ccde1b810a59b684e1d1aec7f9d2d007162 (patch)
treeb9ea9422165c02ca043b2936730afef4629a8f55 /mm/swapfile.c
parentLinux 3.7-rc1 (diff)
downloadlinux-9dbf8ccde1b810a59b684e1d1aec7f9d2d007162.tar.xz
linux-9dbf8ccde1b810a59b684e1d1aec7f9d2d007162.zip
iio: Add some helper macros for unit conversion
Some datasheets use a different unit to specify the channel scale than what IIO expects it to be. This patch adds two helper macros which allow to convert units commonly used in datasheets to IIO units: * acceleration: g -> meter / second**2 * angular velocity: degree (/ second) -> rad (/ second) This makes it much more convenient to specify and also easier to verify a channel's scale attribute. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions