<commit_before>#ifndef __PWM_H__
#define __PWM_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <xboot.h>

struct pwm_t
{
	struct kobj_t * kobj;
	const char * name;
	u32_t __duty;
	u32_t __period;
	bool_t __enable;

	void (*enable)(struct pwm_t * pwm);
	void (*disable)(struct pwm_t * pwm);
	void (*config)(struct pwm_t * pwm, u32_t duty, u32_t period);

	void * pirv;
};

struct pwm_list_t
{
	struct pwm_t * pwm;
	struct list_head entry;
};

extern struct pwm_list_t __pwm_list;

struct pwm_t * search_pwm(const char * name);
bool_t register_pwm(struct pwm_t * pwm);
bool_t unregister_pwm(struct pwm_t * pwm);
void pwm_enable(struct pwm_t * pwm);
void pwm_disable(struct pwm_t * pwm);
void pwm_config(struct pwm_t * pwm, u32_t duty, u32_t period);

#ifdef __cplusplus
}
#endif

#endif /* __PWM_H__ */<commit_msg>fix some world for pwm<commit_after>#ifndef __PWM_H__
#define __PWM_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <xboot.h>

struct pwm_t
{
	struct kobj_t * kobj;
	const char * name;
	u32_t __duty;
	u32_t __period;
	bool_t __enable;

	void (*enable)(struct pwm_t * pwm);
	void (*disable)(struct pwm_t * pwm);
	void (*config)(struct pwm_t * pwm, u32_t duty, u32_t period);

	void * priv;
};

struct pwm_list_t
{
	struct pwm_t * pwm;
	struct list_head entry;
};

extern struct pwm_list_t __pwm_list;

struct pwm_t * search_pwm(const char * name);
bool_t register_pwm(struct pwm_t * pwm);
bool_t unregister_pwm(struct pwm_t * pwm);
void pwm_enable(struct pwm_t * pwm);
void pwm_disable(struct pwm_t * pwm);
void pwm_config(struct pwm_t * pwm, u32_t duty, u32_t period);

#ifdef __cplusplus
}
#endif

#endif /* __PWM_H__ */
{'fraction_non_alphanumeric': 0.11063829787234042, 'fraction_numerical': 0.01458966565349544, 'mean_word_length': 5.029304029304029, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6574022', 'n_tokens_mistral': 745, 'n_tokens_neox': 722, 'n_words': 182}