.ignore_pmdown_time = 1,
};
-
#ifdef CONFIG_PM
static int gbaudio_codec_suspend(struct device *dev)
{
int ret, i;
struct gb_audio_topology *topology;
-
/* There should be at least one Management and one Data cport */
if (bundle->num_cports < 2)
return -ENODEV;
struct gbaudio_module_info *gbmodule = greybus_get_drvdata(bundle);
struct gbaudio_data_connection *dai, *_dai;
-
/* cleanup module related resources first */
gbaudio_unregister_module(gbmodule);
if (!dapm_routes)
return -ENOMEM;
-
module->dapm_routes = dapm_routes;
curr = routes;
}
static DEVICE_ATTR_RW(state);
-
static struct attribute *bundle_attrs[] = {
&dev_attr_bundle_class.attr,
&dev_attr_bundle_id.attr,
return;
}
-
ret = gb_control_disconnected_operation(control, cport_id);
if (ret) {
dev_warn(&connection->bundle->dev,
}
}
-
/**
* gb_gpio_irqchip_add() - adds an irqchip to a gpio chip
* @chip: the gpio chip to add the irqchip to
return 0;
}
-
static int gb_hid_report_len(struct hid_report *report)
{
return ((report->size - 1) >> 3) + 1 +
goto out_put_operation;
}
-
/* Store available properties */
for (i = 0; i < gbpsy->properties_count; i++) {
gbpsy->props[i].prop = resp->props[i].property;
return is_psy_prop_writeable(gbpsy, psp);
}
-
#ifndef CORE_OWNS_PSY_STRUCT
static int gb_power_supply_register(struct gb_power_supply *gbpsy)
{
static void _gb_power_supply_release(struct gb_power_supply *gbpsy)
{
-
gbpsy->update_interval = 0;
cancel_delayed_work_sync(&gbpsy->work);
&request, sizeof(request), NULL, 0);
}
-
static int gb_pwm_set_polarity_operation(struct gb_pwm_chip *pwmc,
u8 which, u8 polarity)
{
/* Nothing to do for now */
}
-
/* Routines to get controller information */
/*
}
static DEVICE_ATTR_RO(ap_intf_id);
-
// FIXME
// This is a hack, we need to do this "right" and clean the interface up
// properly, not just forcibly yank the thing out of the system and hope for the
gb_tty->ctrlout &= ~GB_UART_CTRL_RTS;
retval = send_control(gb_tty, gb_tty->ctrlout);
}
-
}
static void gb_tty_unthrottle(struct tty_struct *tty)
} while (!retval);
return retval;
-
}
static int get_serial_usage(struct gb_tty *gb_tty,
goto exit_connection_disable;
}
-
return 0;
exit_connection_disable: