* [PATCH] driver: drop no longer used RW_SIZE/_MASK macros
@ 2023-01-11 12:00 Ahmad Fatoum
2023-01-12 15:17 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-01-11 12:00 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
O_RWSIZE_MASK is what's now used and it's passed as argument to open.
There remain no users of either RW_SIZE or RW_SIZE_MASK. Remove to avoid
confusion.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/driver.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/driver.h b/include/driver.h
index e1b1ebde5b5f..957b23dff79a 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -128,9 +128,6 @@ struct driver {
#define device_d device
#define driver_d driver
-#define RW_SIZE(x) (x)
-#define RW_SIZE_MASK 0x7
-
/* dynamically assign the next free id */
#define DEVICE_ID_DYNAMIC -2
/* do not use an id (only one device available */
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] driver: drop no longer used RW_SIZE/_MASK macros
2023-01-11 12:00 [PATCH] driver: drop no longer used RW_SIZE/_MASK macros Ahmad Fatoum
@ 2023-01-12 15:17 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-01-12 15:17 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Wed, Jan 11, 2023 at 01:00:02PM +0100, Ahmad Fatoum wrote:
> O_RWSIZE_MASK is what's now used and it's passed as argument to open.
> There remain no users of either RW_SIZE or RW_SIZE_MASK. Remove to avoid
> confusion.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> include/driver.h | 3 ---
> 1 file changed, 3 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/include/driver.h b/include/driver.h
> index e1b1ebde5b5f..957b23dff79a 100644
> --- a/include/driver.h
> +++ b/include/driver.h
> @@ -128,9 +128,6 @@ struct driver {
> #define device_d device
> #define driver_d driver
>
> -#define RW_SIZE(x) (x)
> -#define RW_SIZE_MASK 0x7
> -
> /* dynamically assign the next free id */
> #define DEVICE_ID_DYNAMIC -2
> /* do not use an id (only one device available */
> --
> 2.30.2
>
>
>
--
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 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-12 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 12:00 [PATCH] driver: drop no longer used RW_SIZE/_MASK macros Ahmad Fatoum
2023-01-12 15:17 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox