We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b28133 commit a49d9baCopy full SHA for a49d9ba
drivers/mfd/arizona-spi.c
@@ -190,19 +190,12 @@ static int arizona_spi_acpi_probe(struct arizona *arizona)
190
191
static int arizona_spi_probe(struct spi_device *spi)
192
{
193
- const struct spi_device_id *id = spi_get_device_id(spi);
194
- const void *match_data;
195
struct arizona *arizona;
196
const struct regmap_config *regmap_config = NULL;
197
unsigned long type = 0;
198
int ret;
199
200
- match_data = device_get_match_data(&spi->dev);
201
- if (match_data)
202
- type = (unsigned long)match_data;
203
- else if (id)
204
- type = id->driver_data;
205
-
+ type = (unsigned long)spi_get_device_match_data(spi);
206
switch (type) {
207
case WM5102:
208
if (IS_ENABLED(CONFIG_MFD_WM5102))
0 commit comments