projects/linux·blob master · refs

20 lines · 528 B

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__rust_helper struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
8{
9 return pwmchip_parent(chip);
10}
11
12__rust_helper void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)
13{
14 return pwmchip_get_drvdata(chip);
15}
16
17__rust_helper void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
18{
19 pwmchip_set_drvdata(chip, data);
20}