forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 488
Expand file tree
/
Copy pathregmap.c
More file actions
48 lines (40 loc) · 1.17 KB
/
regmap.c
File metadata and controls
48 lines (40 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// SPDX-License-Identifier: GPL-2.0
#include <linux/i2c.h>
#include <linux/regmap.h>
#if IS_BUILTIN(CONFIG_REGMAP_I2C)
struct regmap *rust_helper_regmap_init_i2c(struct i2c_client *i2c,
const struct regmap_config *config)
{
return regmap_init_i2c(i2c, config);
}
#endif
int rust_helper_regmap_field_write(struct regmap_field *field, unsigned int val)
{
return regmap_field_write(field, val);
}
int rust_helper_regmap_field_force_write(struct regmap_field *field,
unsigned int val)
{
return regmap_field_force_write(field, val);
}
int rust_helper_regmap_field_update_bits(struct regmap_field *field,
unsigned int mask, unsigned int val)
{
return regmap_field_update_bits(field, mask, val);
}
int rust_helper_regmap_field_set_bits(struct regmap_field *field,
unsigned int bits)
{
return regmap_field_set_bits(field, bits);
}
int rust_helper_regmap_field_clear_bits(struct regmap_field *field,
unsigned int bits)
{
return regmap_field_clear_bits(field, bits);
}
int rust_helper_regmap_field_force_update_bits(struct regmap_field *field,
unsigned int mask,
unsigned int val)
{
return regmap_field_force_update_bits(field, mask, val);
}