static void wm831x_irq_lock(struct irq_data *data)
{
- struct wm831x *wm831x = data->chip_data;
+ struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
mutex_lock(&wm831x->irq_lock);
}
static void wm831x_irq_sync_unlock(struct irq_data *data)
{
- struct wm831x *wm831x = data->chip_data;
+ struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
int i;
for (i = 0; i < ARRAY_SIZE(wm831x->irq_masks_cur); i++) {
static void wm831x_irq_unmask(struct irq_data *data)
{
- struct wm831x *wm831x = data->chip_data;
+ struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
struct wm831x_irq_data *irq_data = irq_to_wm831x_irq(wm831x,
data->irq);
static void wm831x_irq_mask(struct irq_data *data)
{
- struct wm831x *wm831x = data->chip_data;
+ struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
struct wm831x_irq_data *irq_data = irq_to_wm831x_irq(wm831x,
data->irq);
static int wm831x_irq_set_type(struct irq_data *data, unsigned int type)
{
- struct wm831x *wm831x = data->chip_data;
+ struct wm831x *wm831x = irq_data_get_irq_chip_data(data);
int val, irq;
irq = data->irq - wm831x->irq_base;
static void wm8350_irq_lock(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
mutex_lock(&wm8350->irq_lock);
}
static void wm8350_irq_sync_unlock(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
int i;
for (i = 0; i < ARRAY_SIZE(wm8350->irq_masks); i++) {
static void wm8350_irq_enable(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350,
data->irq);
static void wm8350_irq_disable(struct irq_data *data)
{
- struct wm8350 *wm8350 = data->chip_data;
+ struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data);
struct wm8350_irq_data *irq_data = irq_to_wm8350_irq(wm8350,
data->irq);
static void wm8994_irq_lock(struct irq_data *data)
{
- struct wm8994 *wm8994 = data->chip_data;
+ struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data);
mutex_lock(&wm8994->irq_lock);
}
static void wm8994_irq_sync_unlock(struct irq_data *data)
{
- struct wm8994 *wm8994 = data->chip_data;
+ struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data);
int i;
for (i = 0; i < ARRAY_SIZE(wm8994->irq_masks_cur); i++) {
static void wm8994_irq_unmask(struct irq_data *data)
{
- struct wm8994 *wm8994 = data->chip_data;
+ struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data);
struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994,
data->irq);
static void wm8994_irq_mask(struct irq_data *data)
{
- struct wm8994 *wm8994 = data->chip_data;
+ struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data);
struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994,
data->irq);