[PATCH] clocksource/drivers/imx-gpt: Use only a single name for functions

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue May 30 08:31:15 PDT 2023


Helo Daniel,

On Tue, Mar 28, 2023 at 11:15:14AM +0200, Uwe Kleine-König wrote:
> When looking at the data structs defining the different behaviours of
> the GPT blocks in different SoCs it's not helpful that the same
> functions are used with different names.
> 
> So drop the cpp defines and use the original names.
> 
> This commit was generated using:
> 
> 	perl -i -e 'my %m; while (<>) { if (/^#define (imx[a-zA-Z0-6_]*)\s(imx[a-zA-Z0-6_]*)/) {$m{$1} = $2; } else { foreach my $f (keys %m) {s/$f/$m{$f}/; } print; } }' drivers/clocksource/timer-imx-gpt.c
> 
> This patch has no effect on the generated code.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

This patch was generated against v6.3-rc1. On the upside it still
applies fine to v6.4-rc1 and even current next/master. On the downside I
didn't get any feedback on it. Is this patch still on your radar?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230530/522d7679/attachment.sig>


More information about the linux-arm-kernel mailing list