Motor: use default frequency when platform frequency request is predefined value, 0 97/233197/1
authorjeongsup.jeong <jeongsup.jeong@samsung.com>
Wed, 25 Mar 2020 10:30:57 +0000 (19:30 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 7 May 2020 06:18:24 +0000 (15:18 +0900)
commitb6145e7c3a42e5bb2d5f0e221cb02952fd3ac250
treeeb6410622b160afe5b178760015db3f14633f1c8
parentdc0add39423b3f95fa2cf3fd0b1889a6886246cc
Motor: use default frequency when platform frequency request is predefined value, 0

Change the default value of frequency from 1 to 0 as following:
- 0 (Use default frequency)
- 1 ~ 8191 (0.1 ~ 819.1 Hz)

And check whether intensity_level is valid or in the early ztm620_motor_run()
function. The intensity_level should be less than count_strength and
count_frequency. The number of count_strength and count_frequency are fixed
according to the h/w device. Each h/w device specifies the number of
count_strength and count_frequency in their own devicetree.

Change-Id: Ie3fd07fbbbf41f72726149864cc0dbe2ac9c71d3
Signed-off-by: jeongsup.jeong <jeongsup.jeong@samsung.com>
[cw00.choi: Add commig-msg as the public style]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/motor/ztm620_motor.c
include/linux/ztm620_motor.h