Messages in this thread | | | From | Andy Shevchenko <> | Date | Mon, 25 Jul 2022 23:29:31 +0200 | Subject | Re: [PATCH v1 1/3] units: complement the set of Hz units |
| |
On Mon, Jul 25, 2022 at 8:44 PM Dmitry Rokosov <DDRokosov@sberdevices.ru> wrote: > > 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.
...
> +#define NHZ_PER_HZ 1000000000UL > +#define UHZ_PER_HZ 1000000UL > +#define MHZ_PER_HZ 1000UL
mHZ perhaps?
> #define HZ_PER_KHZ 1000UL > #define KHZ_PER_MHZ 1000UL > #define HZ_PER_MHZ 1000000UL
-- With Best Regards, Andy Shevchenko
| |