[PATCH] add support for the default_mode variable, as it is documented...
This commit is contained in:
parent
356816abf6
commit
8957102244
|
@ -138,8 +138,12 @@ int add_config_dev(struct config_device *new_dev)
|
||||||
|
|
||||||
static mode_t get_default_mode(struct sysfs_class_device *class_dev)
|
static mode_t get_default_mode(struct sysfs_class_device *class_dev)
|
||||||
{
|
{
|
||||||
/* just default everyone to rw for the world! */
|
mode_t mode = 0600; /* default to owner rw only */
|
||||||
return 0666;
|
|
||||||
|
if (strlen(default_mode_str) != 0) {
|
||||||
|
mode = strtol(default_mode_str, NULL, 8);
|
||||||
|
}
|
||||||
|
return mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void build_kernel_number(struct sysfs_class_device *class_dev, struct udevice *udev)
|
static void build_kernel_number(struct sysfs_class_device *class_dev, struct udevice *udev)
|
||||||
|
|
Loading…
Reference in New Issue