Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/rust/helpers/pwm.c
38271 views
1
// SPDX-License-Identifier: GPL-2.0
2
// Copyright (c) 2025 Samsung Electronics Co., Ltd.
3
// Author: Michal Wilczynski <[email protected]>
4
5
#include <linux/pwm.h>
6
7
struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
8
{
9
return pwmchip_parent(chip);
10
}
11
12
void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)
13
{
14
return pwmchip_get_drvdata(chip);
15
}
16
17
void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
18
{
19
pwmchip_set_drvdata(chip, data);
20
}
21
22