Thread (7 messages) 7 messages, 3 authors, 2012-01-30

[PATCH 1/4] input: mc13783_ts: rename to mc13xxx_ts

flat view
DORMANTno replies

From: Uwe Kleine-König <hidden>
Date: 2012-01-30 07:33:39
Also in: linux-input

Hello,

On Mon, Jan 30, 2012 at 12:52:59AM -0200, Fabio Estevam wrote:
On Sun, Jan 29, 2012 at 8:51 PM, Marc Reilly [off-list ref] wrote:
quoted
Start moving this driver towards support for both mc13892 and mc13783.

This patch simply renames mc13783 specific identifiers to the generic
mc13xxx. A platform_device_id table is also added so that the driver
is still created correctly for the mc13783 only.

Signed-off-by: Marc Reilly <redacted>
---
?drivers/input/touchscreen/Kconfig ? ? ?| ? ?8 +-
?drivers/input/touchscreen/Makefile ? ? | ? ?2 +-
?drivers/input/touchscreen/mc13783_ts.c | ?259 -------------------------------
?drivers/input/touchscreen/mc13xxx_ts.c | ?267 ++++++++++++++++++++++++++++++++
?4 files changed, 272 insertions(+), 264 deletions(-)
?delete mode 100644 drivers/input/touchscreen/mc13783_ts.c
?create mode 100644 drivers/input/touchscreen/mc13xxx_ts.c
For the rename, it is better to do:
git mv  drivers/input/touchscreen/mc13783_ts.c
drivers/input/touchscreen/mc13xxx_ts.c

git commit -a

and then git format -M -1 , as it will detect the rename.
git format-patch -M will detect the rename independently of how the
commit was created. Using git mv doesn't result in adding any special
metadata to the commit, it's just mv $old $new; git rm $old; git add
$new.

But +1 on using -M (or not renaming the driver).

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help