All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gabriel Windlin <gawindlin@gmail.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>,
	Teddy Wang <teddy.wang@siliconmotion.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Cc: Gabriel Windlin <gawindlin@gmail.com>
Subject: [PATCH 1/8] staging: sm750fb: remove unused GPIO_MUX bit field definitions
Date: Wed,  4 Mar 2026 00:24:22 +0100	[thread overview]
Message-ID: <20260303232434.1850583-1-gawindlin@gmail.com> (raw)

The GPIO_MUX_0 through GPIO_MUX_31 bit field macros defined in
ddk750_reg.h are not referenced anywhere in the driver. The register
address GPIO_MUX itself is still used by ddk750_swi2c.c. Remove the
unused bit definitions to reduce dead code as noted in the TODO file.

Signed-off-by: Gabriel Windlin <gawindlin@gmail.com>
---
 drivers/staging/sm750fb/ddk750_reg.h | 32 ----------------------------
 1 file changed, 32 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_reg.h b/drivers/staging/sm750fb/ddk750_reg.h
index fe412ead72e5..59ecbc0d48f7 100644
--- a/drivers/staging/sm750fb/ddk750_reg.h
+++ b/drivers/staging/sm750fb/ddk750_reg.h
@@ -76,38 +76,6 @@
 #define MISC_CTRL_EMBEDDED_LOCALMEM_OFF               BIT(0)
 
 #define GPIO_MUX                                      0x000008
-#define GPIO_MUX_31                                   BIT(31)
-#define GPIO_MUX_30                                   BIT(30)
-#define GPIO_MUX_29                                   BIT(29)
-#define GPIO_MUX_28                                   BIT(28)
-#define GPIO_MUX_27                                   BIT(27)
-#define GPIO_MUX_26                                   BIT(26)
-#define GPIO_MUX_25                                   BIT(25)
-#define GPIO_MUX_24                                   BIT(24)
-#define GPIO_MUX_23                                   BIT(23)
-#define GPIO_MUX_22                                   BIT(22)
-#define GPIO_MUX_21                                   BIT(21)
-#define GPIO_MUX_20                                   BIT(20)
-#define GPIO_MUX_19                                   BIT(19)
-#define GPIO_MUX_18                                   BIT(18)
-#define GPIO_MUX_17                                   BIT(17)
-#define GPIO_MUX_16                                   BIT(16)
-#define GPIO_MUX_15                                   BIT(15)
-#define GPIO_MUX_14                                   BIT(14)
-#define GPIO_MUX_13                                   BIT(13)
-#define GPIO_MUX_12                                   BIT(12)
-#define GPIO_MUX_11                                   BIT(11)
-#define GPIO_MUX_10                                   BIT(10)
-#define GPIO_MUX_9                                    BIT(9)
-#define GPIO_MUX_8                                    BIT(8)
-#define GPIO_MUX_7                                    BIT(7)
-#define GPIO_MUX_6                                    BIT(6)
-#define GPIO_MUX_5                                    BIT(5)
-#define GPIO_MUX_4                                    BIT(4)
-#define GPIO_MUX_3                                    BIT(3)
-#define GPIO_MUX_2                                    BIT(2)
-#define GPIO_MUX_1                                    BIT(1)
-#define GPIO_MUX_0                                    BIT(0)
 
 #define LOCALMEM_ARBITRATION                          0x00000C
 #define LOCALMEM_ARBITRATION_ROTATE                   BIT(28)
-- 
2.53.0


             reply	other threads:[~2026-03-03 23:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-03 23:24 Gabriel Windlin [this message]
2026-03-03 23:24 ` [PATCH 2/8] staging: sm750fb: remove unused CSC register definitions Gabriel Windlin
2026-03-03 23:24 ` [PATCH 3/8] staging: sm750fb: remove unused ZV capture " Gabriel Windlin
2026-03-03 23:24 ` [PATCH 4/8] staging: sm750fb: remove unused alpha and cursor " Gabriel Windlin
2026-03-03 23:24 ` [PATCH 5/8] staging: sm750fb: remove unused memory arbitration " Gabriel Windlin
2026-03-03 23:24 ` [PATCH 6/8] staging: sm750fb: remove unused interrupt " Gabriel Windlin
2026-03-03 23:24 ` [PATCH 7/8] staging: sm750fb: remove unused CURRENT_GATE, CRT_HWC, and DMA " Gabriel Windlin
2026-03-04  8:10   ` Dan Carpenter
2026-03-03 23:24 ` [PATCH 8/8] staging: sm750fb: remove unused GPIO bit field and interrupt definitions Gabriel Windlin
2026-03-09 16:39 ` [PATCH 1/8] staging: sm750fb: remove unused GPIO_MUX bit field definitions Greg Kroah-Hartman

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=20260303232434.1850583-1-gawindlin@gmail.com \
    --to=gawindlin@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=teddy.wang@siliconmotion.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.