浏览代码

ASoC/TLV320AIC3X: Stop I2C driver ID abuse

Please stop using random I2C driver IDs.

Also removed a pointless initialization to 0 of a static struct member.

Acked-by: Takashi Iwai <tiwai@suse.de>
Cc: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Jean Delvare 17 年之前
父节点
当前提交
bc80cc55f0
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      sound/soc/codecs/tlv320aic3x.c

+ 0 - 2
sound/soc/codecs/tlv320aic3x.c

@@ -1187,10 +1187,8 @@ static struct i2c_driver aic3x_i2c_driver = {
 		.name = "aic3x I2C Codec",
 		.name = "aic3x I2C Codec",
 		.owner = THIS_MODULE,
 		.owner = THIS_MODULE,
 	},
 	},
-	.id = I2C_DRIVERID_I2CDEV,
 	.attach_adapter = aic3x_i2c_attach,
 	.attach_adapter = aic3x_i2c_attach,
 	.detach_client = aic3x_i2c_detach,
 	.detach_client = aic3x_i2c_detach,
-	.command = NULL,
 };
 };
 
 
 static struct i2c_client client_template = {
 static struct i2c_client client_template = {