kernel: rename a few functions
This commit has very little technical effect, but makes stuff more readable:
zfad_get_range(): renamed to zfad_convert_hw_range()
zfad_convert_user_range(): new function, same as above by now
zfad_calibration(): renamed to zfad_set_range() because this it is.
This also changes some management of the range values, to hide
hardware values as much as possible, and remove the magic numbers
(they now live only within the zfad_hw_range[] array.
As for the big switch of attribute settings, a comment now
explains where setting happens. And for range settings avoid
using the calibration values for RANGE_OPEN, as the code picked
unpredicatable values, as RANGE_OPEN is out of array bounds.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment