From 05d0bba698b45988170c51c015c216c66774516a Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Sat, 3 Jul 2010 02:46:10 +0200 Subject: [PATCH] --- yaml --- r: 206579 b: refs/heads/master c: 0d9c15e45b362fced933c686c0127e73547bb209 h: refs/heads/master i: 206577: 707a2e4d7c3bf596caefd7a4af7ae77086d68f28 206575: edeaf62a59b10500e7b53db4a90b7d20ef2ff69c v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/wm8750.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 2f8c1b2fd2e7..29d3ee4b647e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a300de3cfffb9ce7d3e87c8c4f24d22f0a081402 +refs/heads/master: 0d9c15e45b362fced933c686c0127e73547bb209 diff --git a/trunk/sound/soc/codecs/wm8750.c b/trunk/sound/soc/codecs/wm8750.c index 9407e193fcc3..e2c05e3e323a 100644 --- a/trunk/sound/soc/codecs/wm8750.c +++ b/trunk/sound/soc/codecs/wm8750.c @@ -884,6 +884,7 @@ static int wm8750_i2c_remove(struct i2c_client *client) static const struct i2c_device_id wm8750_i2c_id[] = { { "wm8750", 0 }, + { "wm8987", 0 }, /* WM8987 is register compatible with WM8750 */ { } }; MODULE_DEVICE_TABLE(i2c, wm8750_i2c_id); @@ -925,14 +926,22 @@ static int __devexit wm8750_spi_remove(struct spi_device *spi) return 0; } +static const struct spi_device_id wm8750_spi_id[] = { + { "wm8750", 0 }, + { "wm8987", 0 }, + { } +}; +MODULE_DEVICE_TABLE(spi, wm8750_spi_id); + static struct spi_driver wm8750_spi_driver = { .driver = { - .name = "wm8750", + .name = "WM8750 SPI Codec", .bus = &spi_bus_type, .owner = THIS_MODULE, }, .probe = wm8750_spi_probe, .remove = __devexit_p(wm8750_spi_remove), + .id_table = wm8750_spi_id, }; #endif