コード例 #1
0
int modem_register_notifier(struct notifier_block *nb)
{
	int ret;

	ret = srcu_notifier_chain_register(
		&modem_notifier_list, nb);

	return ret;
}
コード例 #2
0
/*
 * kgsl_devfreq_add_notifier - add a fine grained notifier.
 * @dev: The device
 * @nb: Notifier block that will recieve updates.
 *
 * Add a notifier to recieve ADRENO_DEVFREQ_NOTIFY_* events
 * from the device.
 */
int kgsl_devfreq_add_notifier(struct device *dev, struct notifier_block *nb)
{
	struct kgsl_device *device = dev_get_drvdata(dev);

	if (device == NULL)
		return -ENODEV;

	if (nb == NULL)
		return -EINVAL;

	return srcu_notifier_chain_register(&device->pwrscale.nh, nb);
}
コード例 #3
0
int mmi_panel_register_notifier(struct notifier_block *nb)
{
	struct mipi_mot_panel *mot_panel = mipi_mot_get_mot_panel();
	return srcu_notifier_chain_register(
				&mot_panel->panel_notifier_list, nb);
}
コード例 #4
0
ファイル: audio.c プロジェクト: hotelzululima/linux-hero4
int ambarella_audio_register_notifier(struct notifier_block *nb)
{
	return srcu_notifier_chain_register( &audio_notifier_list, nb);
}