Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'staging-3.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

Pull more IIO driver fixes from Greg KH:
"Here are two IIO driver fixes for 3.16-rc6 that resolve some reported
issues"

* tag 'staging-3.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
iio: mma8452: Use correct acceleration units.
iio:core: Handle error when mask type is not separate

+10 -1
+7 -1
drivers/iio/accel/mma8452.c
··· 111 111 {6, 250000}, {1, 560000} 112 112 }; 113 113 114 + /* 115 + * Hardware has fullscale of -2G, -4G, -8G corresponding to raw value -2048 116 + * The userspace interface uses m/s^2 and we declare micro units 117 + * So scale factor is given by: 118 + * g * N * 1000000 / 2048 for N = 2, 4, 8 and g=9.80665 119 + */ 114 120 static const int mma8452_scales[3][2] = { 115 - {0, 977}, {0, 1953}, {0, 3906} 121 + {0, 9577}, {0, 19154}, {0, 38307} 116 122 }; 117 123 118 124 static ssize_t mma8452_show_samp_freq_avail(struct device *dev,
+3
drivers/iio/industrialio-event.c
··· 345 345 &indio_dev->event_interface->dev_attr_list); 346 346 kfree(postfix); 347 347 348 + if ((ret == -EBUSY) && (shared_by != IIO_SEPARATE)) 349 + continue; 350 + 348 351 if (ret) 349 352 return ret; 350 353