ALSA: keywest: Get rid of useless i2c_device_name() macro

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 12:04 pm

Gitweb:     http://git.kernel.org/linus/903dba1eae49270a8c2275636071c3a238c8104d
Commit:     903dba1eae49270a8c2275636071c3a238c8104d
Parent:     a4d7749be5de4a7261bcbe3c7d96c748792ec455
Author:     Jean Delvare <khali@linux-fr.org>
AuthorDate: Thu May 14 14:37:21 2009 +0200
Committer:  Takashi Iwai <tiwai@suse.de>
CommitDate: Thu May 14 14:42:19 2009 +0200

    ALSA: keywest: Get rid of useless i2c_device_name() macro
    
    The i2c_device_name() macro is used only once and doesn't have much
    value, it hurts redability more than it helps. Get rid of it.
    
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/ppc/keywest.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c
index a5afb26..b2e2aac 100644
--- a/sound/ppc/keywest.c
+++ b/sound/ppc/keywest.c
@@ -33,10 +33,6 @@
 static struct pmac_keywest *keywest_ctx;
 
 
-#ifndef i2c_device_name
-#define i2c_device_name(x)	((x)->name)
-#endif
-
 static int keywest_probe(struct i2c_client *client,
 			 const struct i2c_device_id *id)
 {
@@ -56,7 +52,7 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
 	if (! keywest_ctx)
 		return -EINVAL;
 
-	if (strncmp(i2c_device_name(adapter), "mac-io", 6))
+	if (strncmp(adapter->name, "mac-io", 6))
 		return 0; /* ignored */
 
 	memset(&info, 0, sizeof(struct i2c_board_info));
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ALSA: keywest: Get rid of useless i2c_device_name() macro, Linux Kernel Mailing ..., (Fri Jun 12, 12:04 pm)