|
30 | 30 | MODULE_LICENSE("GPL v2");
|
31 | 31 | MODULE_ALIAS("snd-firewire-speakers");
|
32 | 32 |
|
| 33 | +struct compat_info { |
| 34 | + const char *driver_name; |
| 35 | + const char *vendor_name; |
| 36 | + const char *model_name; |
| 37 | +}; |
| 38 | + |
33 | 39 | static bool detect_loud_models(struct fw_unit *unit)
|
34 | 40 | {
|
35 | 41 | const char *const models[] = {
|
@@ -59,7 +65,7 @@ static bool detect_loud_models(struct fw_unit *unit)
|
59 | 65 | static int name_card(struct snd_oxfw *oxfw)
|
60 | 66 | {
|
61 | 67 | struct fw_device *fw_dev = fw_parent_device(oxfw->unit);
|
62 |
| - const struct device_info *info; |
| 68 | + const struct compat_info *info; |
63 | 69 | char vendor[24];
|
64 | 70 | char model[32];
|
65 | 71 | const char *d, *v, *m;
|
@@ -87,7 +93,7 @@ static int name_card(struct snd_oxfw *oxfw)
|
87 | 93 | /* to apply card definitions */
|
88 | 94 | if (oxfw->entry->vendor_id == VENDOR_GRIFFIN ||
|
89 | 95 | oxfw->entry->vendor_id == VENDOR_LACIE) {
|
90 |
| - info = (const struct device_info *)oxfw->entry->driver_data; |
| 96 | + info = (const struct compat_info *)oxfw->entry->driver_data; |
91 | 97 | d = info->driver_name;
|
92 | 98 | v = info->vendor_name;
|
93 | 99 | m = info->model_name;
|
@@ -279,13 +285,13 @@ static void oxfw_remove(struct fw_unit *unit)
|
279 | 285 | snd_card_free_when_closed(oxfw->card);
|
280 | 286 | }
|
281 | 287 |
|
282 |
| -static const struct device_info griffin_firewave = { |
| 288 | +static const struct compat_info griffin_firewave = { |
283 | 289 | .driver_name = "FireWave",
|
284 | 290 | .vendor_name = "Griffin",
|
285 | 291 | .model_name = "FireWave",
|
286 | 292 | };
|
287 | 293 |
|
288 |
| -static const struct device_info lacie_speakers = { |
| 294 | +static const struct compat_info lacie_speakers = { |
289 | 295 | .driver_name = "FWSpeakers",
|
290 | 296 | .vendor_name = "LaCie",
|
291 | 297 | .model_name = "FireWire Speakers",
|
|
0 commit comments