2021-02-24 15:28:35

by Daniel Lezcano

[permalink] [raw]
Subject: [PATCH v2 8/9] mtd/drivers/nand: Use HZ macros

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

Signed-off-by: Daniel Lezcano <[email protected]>
---
drivers/mtd/nand/raw/intel-nand-controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/intel-nand-controller.c b/drivers/mtd/nand/raw/intel-nand-controller.c
index a304fda5d1fa..8d00191a4815 100644
--- a/drivers/mtd/nand/raw/intel-nand-controller.c
+++ b/drivers/mtd/nand/raw/intel-nand-controller.c
@@ -20,6 +20,7 @@
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/types.h>
+#include <linux/units.h>
#include <asm/unaligned.h>

#define EBU_CLC 0x000
@@ -102,7 +103,6 @@

#define MAX_CS 2

-#define HZ_PER_MHZ 1000000L
#define USEC_PER_SEC 1000000L

struct ebu_nand_cs {
--
2.17.1


2021-03-04 06:37:51

by Miquel Raynal

[permalink] [raw]
Subject: Re: [PATCH v2 8/9] mtd/drivers/nand: Use HZ macros

On Wed, 2021-02-24 at 14:42:18 UTC, Daniel Lezcano wrote:
> HZ unit conversion macros are available in units.h, use them and
> remove the duplicate definition.
>
> Signed-off-by: Daniel Lezcano <[email protected]>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

2021-03-04 06:38:34

by Miquel Raynal

[permalink] [raw]
Subject: Re: [PATCH v2 8/9] mtd/drivers/nand: Use HZ macros

Hi Daniel,

Daniel Lezcano <[email protected]> wrote on Tue, 2 Mar 2021
18:03:12 +0100:

> On 02/03/2021 17:31, Miquel Raynal wrote:
> > On Wed, 2021-02-24 at 14:42:18 UTC, Daniel Lezcano wrote:
> >> HZ unit conversion macros are available in units.h, use them and
> >> remove the duplicate definition.
> >>
> >> Signed-off-by: Daniel Lezcano <[email protected]>
> >
> > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
>
> Actually, I was expecting to have it merged through linux-pm as this
> patch depends on 1/9
>
>
>

No problem, I just removed it from my tree. However in this case
please fix the subject prefix to "mtd: rawnand: intel:". With this nit
fixed,

Acked-by: Miquel Raynal <[email protected]>

Thanks,
Miquèl

2021-03-04 20:25:44

by Daniel Lezcano

[permalink] [raw]
Subject: Re: [PATCH v2 8/9] mtd/drivers/nand: Use HZ macros

On 02/03/2021 17:31, Miquel Raynal wrote:
> On Wed, 2021-02-24 at 14:42:18 UTC, Daniel Lezcano wrote:
>> HZ unit conversion macros are available in units.h, use them and
>> remove the duplicate definition.
>>
>> Signed-off-by: Daniel Lezcano <[email protected]>
>
> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Actually, I was expecting to have it merged through linux-pm as this
patch depends on 1/9



--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog