staging: fbtft: remove redundant set_addr_win() function
authorDennis Menschel <menschel-d@posteo.de>
Wed, 21 Oct 2015 21:16:54 +0000 (23:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:42:37 +0000 (19:42 -0700)
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@posteo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_st7789v.c

index 22a7b5b2219fa57d6e3caf4e8c3407d1815cbe08..c0ecf2be051ac30ca9a7301c34e455b9c73c21bc 100644 (file)
@@ -127,24 +127,6 @@ static int default_init_sequence[] = {
        -3,
 };
 
-/**
- * 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
  *
@@ -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,
This page took 0.025415 seconds and 5 git commands to generate.