snd_dice_detect_formats_t detect_formats;
int err;
- if (!entry->driver_data && entry->vendor_id != OUI_SSL) {
+ if (!entry->driver_data_ptr && entry->vendor_id != OUI_SSL) {
err = check_dice_category(unit);
if (err < 0)
return -ENODEV;
dev_set_drvdata(&unit->device, dice);
dice->card = card;
- if (!entry->driver_data)
+ if (!entry->driver_data_ptr)
detect_formats = snd_dice_stream_detect_current_formats;
else
- detect_formats = (snd_dice_detect_formats_t)entry->driver_data;
+ detect_formats = entry->driver_data_ptr;
// Below models are compliant to IEC 61883-1/6 and have no quirk at high sampling transfer
// frequency.
.model_id = (model), \
.specifier_id = (vendor), \
.version = DICE_INTERFACE, \
- .driver_data = (kernel_ulong_t)(data), \
+ .driver_data_ptr = (data), \
}
static const struct ieee1394_device_id dice_id_table[] = {
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_MAUDIO,
.model_id = 0x000010,
- .driver_data = (kernel_ulong_t)snd_dice_detect_extension_formats,
+ .driver_data_ptr = snd_dice_detect_extension_formats,
},
/* M-Audio Profire 610 has a different value in version field. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_MAUDIO,
.model_id = 0x000011,
- .driver_data = (kernel_ulong_t)snd_dice_detect_extension_formats,
+ .driver_data_ptr = snd_dice_detect_extension_formats,
},
/* TC Electronic Konnekt 24D. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_TCELECTRONIC,
.model_id = 0x000020,
- .driver_data = (kernel_ulong_t)snd_dice_detect_tcelectronic_formats,
+ .driver_data_ptr = snd_dice_detect_tcelectronic_formats,
},
/* TC Electronic Konnekt 8. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_TCELECTRONIC,
.model_id = 0x000021,
- .driver_data = (kernel_ulong_t)snd_dice_detect_tcelectronic_formats,
+ .driver_data_ptr = snd_dice_detect_tcelectronic_formats,
},
/* TC Electronic Studio Konnekt 48. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_TCELECTRONIC,
.model_id = 0x000022,
- .driver_data = (kernel_ulong_t)snd_dice_detect_tcelectronic_formats,
+ .driver_data_ptr = snd_dice_detect_tcelectronic_formats,
},
/* TC Electronic Konnekt Live. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_TCELECTRONIC,
.model_id = 0x000023,
- .driver_data = (kernel_ulong_t)snd_dice_detect_tcelectronic_formats,
+ .driver_data_ptr = snd_dice_detect_tcelectronic_formats,
},
/* TC Electronic Desktop Konnekt 6. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_TCELECTRONIC,
.model_id = 0x000024,
- .driver_data = (kernel_ulong_t)snd_dice_detect_tcelectronic_formats,
+ .driver_data_ptr = snd_dice_detect_tcelectronic_formats,
},
/* TC Electronic Impact Twin. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_TCELECTRONIC,
.model_id = 0x000027,
- .driver_data = (kernel_ulong_t)snd_dice_detect_tcelectronic_formats,
+ .driver_data_ptr = snd_dice_detect_tcelectronic_formats,
},
/* TC Electronic Digital Konnekt x32. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_TCELECTRONIC,
.model_id = 0x000030,
- .driver_data = (kernel_ulong_t)snd_dice_detect_tcelectronic_formats,
+ .driver_data_ptr = snd_dice_detect_tcelectronic_formats,
},
/* Alesis iO14/iO26. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_ALESIS,
.model_id = MODEL_ALESIS_IO_BOTH,
- .driver_data = (kernel_ulong_t)snd_dice_detect_alesis_formats,
+ .driver_data_ptr = snd_dice_detect_alesis_formats,
},
// Alesis MasterControl.
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_ALESIS,
.model_id = 0x000002,
- .driver_data = (kernel_ulong_t)snd_dice_detect_alesis_mastercontrol_formats,
+ .driver_data_ptr = snd_dice_detect_alesis_mastercontrol_formats,
},
/* Mytek Stereo 192 DSD-DAC. */
{
IEEE1394_MATCH_MODEL_ID,
.vendor_id = OUI_MYTEK,
.model_id = 0x000002,
- .driver_data = (kernel_ulong_t)snd_dice_detect_mytek_formats,
+ .driver_data_ptr = snd_dice_detect_mytek_formats,
},
// Solid State Logic, Duende Classic and Mini.
// NOTE: each field of GUID in config ROM is not compliant to standard
.model_id = OUI_TEAC,
.specifier_id = OUI_TEAC,
.version = 0x800006,
- .driver_data = (kernel_ulong_t)snd_dice_detect_teac_formats,
+ .driver_data_ptr = snd_dice_detect_teac_formats,
},
{ }
};
init_waitqueue_head(&ff->hwdep_wait);
ff->unit_version = entry->version;
- ff->spec = (const struct snd_ff_spec *)entry->driver_data;
+ ff->spec = entry->driver_data_ptr;
err = snd_ff_transaction_register(ff);
if (err < 0)
.specifier_id = OUI_RME,
.version = SND_FF_UNIT_VERSION_FF800,
.model_id = 0x101800,
- .driver_data = (kernel_ulong_t)&spec_ff800,
+ .driver_data_ptr = &spec_ff800,
},
/* Fireface 400 */
{
.specifier_id = OUI_RME,
.version = SND_FF_UNIT_VERSION_FF400,
.model_id = 0x101800,
- .driver_data = (kernel_ulong_t)&spec_ff400,
+ .driver_data_ptr = &spec_ff400,
},
// Fireface UFX.
{
.specifier_id = OUI_RME,
.version = SND_FF_UNIT_VERSION_UFX,
.model_id = 0x101800,
- .driver_data = (kernel_ulong_t)&spec_ufx_802,
+ .driver_data_ptr = &spec_ufx_802,
},
// Fireface UCX.
{
.specifier_id = OUI_RME,
.version = SND_FF_UNIT_VERSION_UCX,
.model_id = 0x101800,
- .driver_data = (kernel_ulong_t)&spec_ucx,
+ .driver_data_ptr = &spec_ucx,
},
// Fireface 802.
{
.specifier_id = OUI_RME,
.version = SND_FF_UNIT_VERSION_802,
.model_id = 0x101800,
- .driver_data = (kernel_ulong_t)&spec_ufx_802,
+ .driver_data_ptr = &spec_ufx_802,
},
{}
};
dev_set_drvdata(&unit->device, motu);
motu->card = card;
- motu->spec = (const struct snd_motu_spec *)entry->driver_data;
+ motu->spec = entry->driver_data_ptr;
mutex_init(&motu->mutex);
spin_lock_init(&motu->lock);
init_waitqueue_head(&motu->hwdep_wait);
snd_motu_transaction_reregister(motu);
}
-#define SND_MOTU_DEV_ENTRY(model, data) \
+#define SND_MOTU_DEV_ENTRY(model, data_ptr) \
{ \
.match_flags = IEEE1394_MATCH_VENDOR_ID | \
IEEE1394_MATCH_SPECIFIER_ID | \
.vendor_id = OUI_MOTU, \
.specifier_id = OUI_MOTU, \
.version = model, \
- .driver_data = (kernel_ulong_t)data, \
+ .driver_data_ptr = data_ptr, \
}
static const struct ieee1394_device_id motu_id_table[] = {