summaryrefslogtreecommitdiff
path: root/rust/helpers/device.c
blob: 502fef7e9ae87a107c61f203a3ee41309ced61aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: GPL-2.0

#include <linux/device.h>

int rust_helper_devm_add_action(struct device *dev,
				void (*action)(void *),
				void *data)
{
	return devm_add_action(dev, action, data);
}

int rust_helper_devm_add_action_or_reset(struct device *dev,
					 void (*action)(void *),
					 void *data)
{
	return devm_add_action_or_reset(dev, action, data);
}