linux/drivers/staging/fbtft
Haneen Mohammed aed1c72e44 Staging: fbtft: clean dev_err() logging
This patch removes  __func__ from dev_err. dev_err includes information about:
(devcice, driver, specific instance of device, etc) in the log printout.
This was done using Coccinelle, with the following semantic patch:

@a@
expression E, R;
expression  msg;
@@

dev_err(E, msg, __func__, R);

@script:python b@
e << a.msg;
y;
@@

if(e.find("%s: ") == True):
	m = e.replace("%s: ", "", 1);
	coccinelle.y = m;
elif(e.find("%s ") == True):
	m = e.replace("%s ", "", 1);
	coccinelle.y = m;
elif(e.find("%s:") == True):
	m = e.replace("%s:", "", 1);
	coccinelle.y = m;
else:
	m = e.replace("%s", "",1);
	coccinelle.y = m;

@c@
expression a.E, a.msg, a.R;
identifier  b.y;
@@

- dev_err(E, msg, __func__, R);
+ dev_err(E, y, R);

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-06 15:55:36 -08:00
..
fb_agm1264k-fl.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fb_bd663474.c staging: fbtft: fix spacing errors 2015-02-24 15:31:15 -08:00
fb_hx8340bn.c Staging: fbtft: Fix Sparse warnings 2015-03-01 17:12:43 -08:00
fb_hx8347d.c staging: fbtft: add fb_hx8347d driver 2015-01-17 16:46:46 -08:00
fb_hx8353d.c staging: fbtft: add fb_hx8353d driver 2015-01-17 16:46:46 -08:00
fb_ili9320.c Staging: fbtft: Added blank line after declaration 2015-02-26 13:08:25 -08:00
fb_ili9325.c staging: fbtft: add fb_ili9325 driver 2015-01-17 16:46:46 -08:00
fb_ili9340.c staging: fbtft: fix space prohibited before that ',' 2015-02-24 15:31:15 -08:00
fb_ili9341.c staging: fbtft: add fb_ili9341 driver 2015-01-17 16:46:46 -08:00
fb_ili9481.c staging: fbtft: add fb_ili9481 driver 2015-01-17 16:46:47 -08:00
fb_ili9486.c staging: fbtft: fix code indent should use tabs where possible 2015-02-26 13:06:13 -08:00
fb_pcd8544.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fb_ra8875.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fb_s6d02a1.c staging: fbtft: add fb_s6d02a1 driver 2015-01-17 16:46:47 -08:00
fb_s6d1121.c Staging: fbtft: removed trailing whitespace 2015-02-26 13:11:27 -08:00
fb_ssd1289.c staging: fbtft: add fb_ssd1289 driver 2015-01-17 16:46:47 -08:00
fb_ssd1306.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fb_ssd1331.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fb_ssd1351.c Staging: fbtft: Remove unnecessary 'out of memory' message. 2015-03-06 09:54:26 -08:00
fb_st7735r.c staging: fbtft: fix space required after that ',' 2015-02-26 13:06:59 -08:00
fb_tinylcd.c staging: fbtft: add fb_tinylcd driver 2015-01-17 16:46:48 -08:00
fb_tls8204.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fb_uc1701.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fb_upd161704.c Staging: fbtft: fix space errors 2015-03-01 17:14:40 -08:00
fb_watterott.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fbtft_device.c Staging: fbtft: Fix Sparse warnings 2015-03-01 17:12:43 -08:00
fbtft-bus.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fbtft-core.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fbtft-io.c Staging: fbtft: clean dev_err() logging 2015-03-06 15:55:36 -08:00
fbtft-sysfs.c
fbtft.h
flexfb.c staging: fbtft: remove redundant .owner 2015-01-28 11:28:44 -08:00
Kconfig staging: fbtft: add fbtft_device driver 2015-01-17 16:46:48 -08:00
Makefile staging: fbtft: add fbtft_device driver 2015-01-17 16:46:48 -08:00
README Staging: fbtft: remove trailing whitespace 2015-02-26 13:11:27 -08:00

  FBTFT
=========

Linux Framebuffer drivers for small TFT LCD display modules.
The module 'fbtft' makes writing drivers for some of these displays very easy.

Development is done on a Raspberry Pi running the Raspbian "wheezy" distribution.

INSTALLATION
  Download kernel sources

  From Linux 3.15
    cd drivers/video/fbdev/fbtft
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/fbdev/Kconfig:   source "drivers/video/fbdev/fbtft/Kconfig"
    Add to drivers/video/fbdev/Makefile:  obj-y += fbtft/

  Before Linux 3.15
    cd drivers/video
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/Kconfig:   source "drivers/video/fbtft/Kconfig"
    Add to drivers/video/Makefile:  obj-y += fbtft/

  Enable driver(s) in menuconfig and build the kernel


See wiki for more information: https://github.com/notro/fbtft/wiki


Source: https://github.com/notro/fbtft/