hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
 */
 
#ifndef _PWM_ROCKCHIP_H_
#define _PWM_ROCKCHIP_H_
 
#include <linux/pwm.h>
 
static void rockchip_pwm_oneshot_callback(struct pwm_device *pwm, struct pwm_state *state)
{
   /*
    * If you want to enable oneshot mode again, config and call
    * pwm_apply_state().
    *
    * struct pwm_state new_state;
    *
    * pwm_get_state(pwm, &new_state);
    * new_state.enabled = true;
    * ......
    * pwm_apply_state(pwm, &new_state);
    *
    */
}
 
#endif