/* sequential write */
static int ap_cs8427_sendbytes(snd_i2c_device_t *device, unsigned char *bytes, int count)
{
- ice1712_t *ice = snd_magic_cast(ice1712_t, device->bus->private_data, return -EIO);
+ ice1712_t *ice = device->bus->private_data;
int res = count;
unsigned char tmp;
/* sequential read */
static int ap_cs8427_readbytes(snd_i2c_device_t *device, unsigned char *bytes, int count)
{
- ice1712_t *ice = snd_magic_cast(ice1712_t, device->bus->private_data, return -EIO);
+ ice1712_t *ice = device->bus->private_data;
int res = count;
unsigned char tmp;