Commit 18bf50a374a46aec83652f48006a6fac764c635d
Committed by
Samuel Ortiz
1 parent
f78d29f166
Exists in
master
and in
6 other branches
mfd: Store wm8350 struct in core device driver data
This will allow us to move to a more idiomatic MFD model as drivers will be able to get the struct by looking at their parent device. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
drivers/mfd/wm8350-core.c
... | ... | @@ -573,6 +573,8 @@ |
573 | 573 | u16 id1, id2, mask_rev; |
574 | 574 | u16 cust_id, mode, chip_rev; |
575 | 575 | |
576 | + dev_set_drvdata(wm8350->dev, wm8350); | |
577 | + | |
576 | 578 | /* get WM8350 revision and config mode */ |
577 | 579 | ret = wm8350->read_dev(wm8350, WM8350_RESET_ID, sizeof(id1), &id1); |
578 | 580 | if (ret != 0) { |