mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] driver: drop no longer used RW_SIZE/_MASK macros
Date: Wed, 11 Jan 2023 13:00:02 +0100	[thread overview]
Message-ID: <20230111120002.1104864-1-a.fatoum@pengutronix.de> (raw)

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




             reply	other threads:[~2023-01-11 12:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-11 12:00 Ahmad Fatoum [this message]
2023-01-12 15:17 ` Sascha Hauer

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=20230111120002.1104864-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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