[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <4dfae0c4224dd64192121af09a0442b4d4f43050.1445284543.git.menschel-d@posteo.de>
Date: Wed, 21 Oct 2015 23:16:54 +0200
From: Dennis Menschel <menschel-d@...teo.de>
To: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
Noralf Trønnes <noralf@...nnes.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
Dennis Menschel <menschel-d@...teo.de>
Subject: [PATCH 2/4] staging: fbtft: remove redundant set_addr_win() function
This patch removes the function set_addr_win() from fb_st7789v.c, as its
definition is redundant to the default implementation fbtft_set_addr_win()
which can be found in fbtft-core.c.
Signed-off-by: Dennis Menschel <menschel-d@...teo.de>
---
drivers/staging/fbtft/fb_st7789v.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c
index 22a7b5b..c0ecf2b 100644
--- a/drivers/staging/fbtft/fb_st7789v.c
+++ b/drivers/staging/fbtft/fb_st7789v.c
@@ -128,24 +128,6 @@ static int default_init_sequence[] = {
};
/**
- * set_addr_win() - configure display area to use
- *
- * @par: FBTFT parameter object
- * @xs: first active pixel of x-axis
- * @ys: first active pixel of y-axis
- * @xe: last active pixel of x-axis
- * @ye: last active pixel of y-axis
- */
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xFF, xe >> 8, xe & 0xFF);
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xFF, ye >> 8, ye & 0xFF);
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
-/**
* set_var() - apply LCD properties like rotation and BGR mode
*
* @par: FBTFT parameter object
@@ -260,7 +242,6 @@ static struct fbtft_display display = {
.gamma_len = 14,
.gamma = DEFAULT_GAMMA,
.fbtftops = {
- .set_addr_win = set_addr_win,
.set_var = set_var,
.set_gamma = set_gamma,
.blank = blank,
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists