[PATCH] common: driver: fixes argument name mismatch in for_each_cdev

Sascha Hauer sha at pengutronix.de
Wed Jun 14 06:58:57 PDT 2023

Hi Michael,

On Wed, Jun 14, 2023 at 03:51:33PM +0200, michael.kopfensteiner at vahle.com wrote:
> From: Michael Kopfensteiner <michael.kopfensteiner at vahle.com>
> The for_each_cdev makro takes a pointer argument as loop cursor.
> Due to a name mismatch, not the provided pointer was used but
> whatever was called `cdev`.
> This mismatch had no effect, because in every usage the given
> pointer is named cdev anyway.
> This commit fixes the name-mismatch. The makro now works with
> arguments name differently than 'cdev' too.

Thanks for fixing this. Ahmad was a bit faster though, it is already
fixed in next branch with 7fb4fd0417 ("cdev: fix for_each_cdev macro")


Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

More information about the barebox mailing list