diff options
| author | nmalwade <nmalwade@nvidia.com> | 2021-04-13 10:22:01 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-04-21 05:40:16 -0400 |
| commit | 1590bdec84040c6cb5e8869bbdd6f9198f1c15a4 (patch) | |
| tree | 5e8e5584a391e08dc408ebc60207d77160e2b3f6 /include/linux | |
| parent | dbfc138f5ef308675071acde3678cbc6d2d2d2b4 (diff) | |
drivers: staging: iio: move notifier functions
Operation mode of ina3221 can be selected by writing into running_mode
sysfs entry.
* Writing >0 enables FORCED_CONTINUOUS mode
* Writing 0 enables FORCED_TRIGGERED mode
* Writing <0 enables automatic mode selection of the driver
Since notifier's are required for the automatic mode selection,
moving the notifier register and unregister functions
accordingly.
Bug 200703915
Change-Id: I0f70dc66654748caefaaafd6c3924843c9a942ce
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2514227
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
