From: Jonathan Cameron <jic23@kernel.org>
To: Dmitry Rokosov <DDRokosov@sberdevices.ru>
Cc: "akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"andriy.shevchenko@linux.intel.com"
<andriy.shevchenko@linux.intel.com>,
"andy.shevchenko@gmail.com" <andy.shevchenko@gmail.com>,
"christophe.jaillet@wanadoo.fr" <christophe.jaillet@wanadoo.fr>,
"stano.jakubek@gmail.com" <stano.jakubek@gmail.com>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"stephan@gerhold.net" <stephan@gerhold.net>,
"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
"wsa@kernel.org" <wsa@kernel.org>,
"lars@metafoo.de" <lars@metafoo.de>,
"Michael.Hennerich@analog.com" <Michael.Hennerich@analog.com>,
"jbhayana@google.com" <jbhayana@google.com>,
"lucas.demarchi@intel.com" <lucas.demarchi@intel.com>,
"jani.nikula@intel.com" <jani.nikula@intel.com>,
"linus.walleij@linaro.org" <linus.walleij@linaro.org>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
kernel <kernel@sberdevices.ru>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH v5 2/7] units: complement the set of Hz units
Date: Sun, 28 Aug 2022 16:55:41 +0100 [thread overview]
Message-ID: <20220828165541.2cd81c97@jic23-huawei> (raw)
In-Reply-To: <20220812165243.22177-3-ddrokosov@sberdevices.ru>
On Fri, 12 Aug 2022 16:52:26 +0000
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.
>
> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
I'm not really sure why Andrew Morton picked these up as no obviously
dependencies outside of IIO and we have other patches under review that
need these.
Anyhow, I see they are still in Andrew's nonmm-unstable tree, so
assuming he won't mind me picking them up through IIO instead / as well.
If nothing else git will sort this out when the two trees reach
linux-next or upstream anyway.
+Cc Andrew Morton.
this and next two patches applied to the togreg branch of iio.git.
I'll push that out as testing for 0-day to do it's sanity checks then
it'll go out as iio.git / togreg and get picked up by linux-next.
Thanks,
Jonathan
> ---
> include/linux/units.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/linux/units.h b/include/linux/units.h
> index 681fc652e3d7..2793a41e73a2 100644
> --- a/include/linux/units.h
> +++ b/include/linux/units.h
> @@ -20,6 +20,9 @@
> #define PICO 1000000000000ULL
> #define FEMTO 1000000000000000ULL
>
> +#define NANOHZ_PER_HZ 1000000000UL
> +#define MICROHZ_PER_HZ 1000000UL
> +#define MILLIHZ_PER_HZ 1000UL
> #define HZ_PER_KHZ 1000UL
> #define KHZ_PER_MHZ 1000UL
> #define HZ_PER_MHZ 1000000UL
next prev parent reply other threads:[~2022-08-28 16:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-12 16:52 [PATCH v5 0/7] iio: accel: add MSA311 accelerometer driver Dmitry Rokosov
2022-08-12 16:52 ` [PATCH v5 1/7] lib/string_helpers: Add str_read_write() helper Dmitry Rokosov
2022-08-12 17:15 ` Dmitry Rokosov
2022-08-12 16:52 ` [PATCH v5 2/7] units: complement the set of Hz units Dmitry Rokosov
2022-08-28 15:55 ` Jonathan Cameron [this message]
2022-08-29 21:06 ` Andrew Morton
2022-08-29 21:07 ` Andrew Morton
2022-08-12 16:52 ` [PATCH v5 4/7] iio: common: scmi_sensors: use HZ macro from units.h Dmitry Rokosov
2022-08-12 16:52 ` [PATCH v5 3/7] iio: accel: adxl345: " Dmitry Rokosov
2022-08-12 16:52 ` [PATCH v5 5/7] dt-bindings: vendor-prefixes: add MEMSensing Microsystems Co., Ltd Dmitry Rokosov
2022-08-12 16:52 ` [PATCH v5 6/7] iio: add MEMSensing MSA311 3-axis accelerometer driver Dmitry Rokosov
2022-08-12 17:10 ` Dmitry Rokosov
2022-08-12 22:34 ` Andy Shevchenko
2022-08-14 16:26 ` Jonathan Cameron
2022-08-15 14:01 ` Dmitry Rokosov
2022-08-14 16:41 ` Jonathan Cameron
2022-08-12 16:52 ` [PATCH v5 7/7] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Dmitry Rokosov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220828165541.2cd81c97@jic23-huawei \
--to=jic23@kernel.org \
--cc=DDRokosov@sberdevices.ru \
--cc=Michael.Hennerich@analog.com \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jani.nikula@intel.com \
--cc=jbhayana@google.com \
--cc=kernel@sberdevices.ru \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucas.demarchi@intel.com \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.org \
--cc=stano.jakubek@gmail.com \
--cc=stephan@gerhold.net \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).