Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: wm8994: Add device ID data to WM8994 OF device IDs

We can actually read this back from the device but we use this when
registered using standard I2C board data registration so make sure
it's there for OF too.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Mark Brown and committed by
Samuel Ortiz
39aa3b5a a79fc765

+3 -3
+3 -3
drivers/mfd/wm8994-core.c
··· 673 673 } 674 674 675 675 static const struct of_device_id wm8994_of_match[] = { 676 - { .compatible = "wlf,wm1811", }, 677 - { .compatible = "wlf,wm8994", }, 678 - { .compatible = "wlf,wm8958", }, 676 + { .compatible = "wlf,wm1811", .data = (void *)WM1811 }, 677 + { .compatible = "wlf,wm8994", .data = (void *)WM8994 }, 678 + { .compatible = "wlf,wm8958", .data = (void *)WM8958 }, 679 679 { } 680 680 }; 681 681 MODULE_DEVICE_TABLE(of, wm8994_of_match);