xref: /linux/rust/helpers/fwctl.c (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1*e052daabSZhi Wang // SPDX-License-Identifier: GPL-2.0
2*e052daabSZhi Wang 
3*e052daabSZhi Wang #include <linux/fwctl.h>
4*e052daabSZhi Wang 
5*e052daabSZhi Wang #if IS_ENABLED(CONFIG_RUST_FWCTL_ABSTRACTIONS)
6*e052daabSZhi Wang 
7*e052daabSZhi Wang __rust_helper struct fwctl_device *rust_helper_fwctl_get(struct fwctl_device *fwctl)
8*e052daabSZhi Wang {
9*e052daabSZhi Wang 	return fwctl_get(fwctl);
10*e052daabSZhi Wang }
11*e052daabSZhi Wang 
12*e052daabSZhi Wang __rust_helper void rust_helper_fwctl_put(struct fwctl_device *fwctl)
13*e052daabSZhi Wang {
14*e052daabSZhi Wang 	fwctl_put(fwctl);
15*e052daabSZhi Wang }
16*e052daabSZhi Wang 
17*e052daabSZhi Wang #endif
18