]> git.baikalelectronics.ru Git - kernel.git/commit
units: complement the set of Hz units
authorDmitry Rokosov <DDRokosov@sberdevices.ru>
Fri, 12 Aug 2022 16:52:26 +0000 (16:52 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 28 Aug 2022 15:52:28 +0000 (16:52 +0100)
commit68f43440d40e425209ef2b2ac04e8de6f42a444c
tree600c735f6cb602bd7b2a6c326b4f1b67d233899b
parent04557b3746e3ee7227730e7dcecee39d5031623f
units: complement the set of Hz units

Currently, Hz units do not have milli, micro and nano Hz coefficients.
Some drivers (IIO especially) use their analogues to calculate
appropriate Hz values. This patch includes them to units.h definitions,
so they can be used from different kernel places.

Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Link: https://lore.kernel.org/r/20220812165243.22177-3-ddrokosov@sberdevices.ru
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
include/linux/units.h