コード例 #1
0
static int bd2802_resume(struct i2c_client *client)
{
    struct bd2802_led *led = i2c_get_clientdata(client);

    if (!bd2802_is_all_off(led) || led->adf_on) {
        bd2802_reset_cancel(led);
        bd2802_restore_state(led);
    }

    return 0;
}
コード例 #2
0
static int bd2802_resume(struct i2c_client *client)
{
	struct bd2802_led *led = i2c_get_clientdata(client);

	if (!bd2802_is_all_off(led) || led->adf_on) {
		gpio_set_value(led->pdata->reset_gpio, 1);
		udelay(100);
		bd2802_restore_state(led);
	}

	return 0;
}