From: Lad, Prabhakar Date: Mon, 12 Jan 2015 19:21:14 +0000 (+0000) Subject: fbdev: ssd1307fb: drop unused function ssd1307fb_write_data() X-Git-Tag: v4.0-rc1~128^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f6535d21e388a3f543fadfabab65e0eda413b2b2;p=karo-tx-linux.git fbdev: ssd1307fb: drop unused function ssd1307fb_write_data() this patch drops the unused function ssd1307fb_write_data(). Signed-off-by: Lad, Prabhakar Acked-by: Maxime Ripard Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index f4daa59f0a80..31d845bf79a8 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -122,23 +122,6 @@ static inline int ssd1307fb_write_cmd(struct i2c_client *client, u8 cmd) return ret; } -static inline int ssd1307fb_write_data(struct i2c_client *client, u8 data) -{ - struct ssd1307fb_array *array; - int ret; - - array = ssd1307fb_alloc_array(1, SSD1307FB_DATA); - if (!array) - return -ENOMEM; - - array->data[0] = data; - - ret = ssd1307fb_write_array(client, array, 1); - kfree(array); - - return ret; -} - static void ssd1307fb_update_display(struct ssd1307fb_par *par) { struct ssd1307fb_array *array;