Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@posteo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dennis Menschel and committed by
Greg Kroah-Hartman
5d7b1692 598af18a

-19
-19
drivers/staging/fbtft/fb_st7789v.c
··· 128 128 }; 129 129 130 130 /** 131 - * set_addr_win() - configure display area to use 132 - * 133 - * @par: FBTFT parameter object 134 - * @xs: first active pixel of x-axis 135 - * @ys: first active pixel of y-axis 136 - * @xe: last active pixel of x-axis 137 - * @ye: last active pixel of y-axis 138 - */ 139 - static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) 140 - { 141 - write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS, 142 - xs >> 8, xs & 0xFF, xe >> 8, xe & 0xFF); 143 - write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS, 144 - ys >> 8, ys & 0xFF, ye >> 8, ye & 0xFF); 145 - write_reg(par, MIPI_DCS_WRITE_MEMORY_START); 146 - } 147 - 148 - /** 149 131 * set_var() - apply LCD properties like rotation and BGR mode 150 132 * 151 133 * @par: FBTFT parameter object ··· 242 260 .gamma_len = 14, 243 261 .gamma = DEFAULT_GAMMA, 244 262 .fbtftops = { 245 - .set_addr_win = set_addr_win, 246 263 .set_var = set_var, 247 264 .set_gamma = set_gamma, 248 265 .blank = blank,