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 a49d9ba commit 0ddabc8Copy full SHA for 0ddabc8
drivers/mfd/madera-spi.c
@@ -18,21 +18,14 @@
18
19
static int madera_spi_probe(struct spi_device *spi)
20
{
21
- const struct spi_device_id *id = spi_get_device_id(spi);
22
struct madera *madera;
23
const struct regmap_config *regmap_16bit_config = NULL;
24
const struct regmap_config *regmap_32bit_config = NULL;
25
- const void *of_data;
26
unsigned long type;
27
const char *name;
28
int ret;
29
30
- of_data = of_device_get_match_data(&spi->dev);
31
- if (of_data)
32
- type = (unsigned long)of_data;
33
- else
34
- type = id->driver_data;
35
-
+ type = (unsigned long)spi_get_device_match_data(spi);
36
switch (type) {
37
case CS47L15:
38
if (IS_ENABLED(CONFIG_MFD_CS47L15)) {
0 commit comments