Skip to content

Commit a575e77

Browse files
EmantorUlf Hansson
authored andcommitted
mmc: debugfs: convert permissions to octal
Convert the existing symbolic permissions to the octal presentation as this is the preferred representation for debugfs permissions. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Link: https://lore.kernel.org/r/20240326094215.212930-1-r.czerwinski@pengutronix.de Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 66486ed commit a575e77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/mmc/core/debugfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ void mmc_add_host_debugfs(struct mmc_host *host)
351351
root = debugfs_create_dir(mmc_hostname(host), NULL);
352352
host->debugfs_root = root;
353353

354-
debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops);
354+
debugfs_create_file("ios", 0400, root, host, &mmc_ios_fops);
355355
debugfs_create_file("caps", 0600, root, &host->caps, &mmc_caps_fops);
356356
debugfs_create_file("caps2", 0600, root, &host->caps2,
357357
&mmc_caps2_fops);
358-
debugfs_create_file_unsafe("clock", S_IRUSR | S_IWUSR, root, host,
358+
debugfs_create_file_unsafe("clock", 0600, root, host,
359359
&mmc_clock_fops);
360360

361361
debugfs_create_file_unsafe("err_state", 0600, root, host,
@@ -388,7 +388,7 @@ void mmc_add_card_debugfs(struct mmc_card *card)
388388
root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root);
389389
card->debugfs_root = root;
390390

391-
debugfs_create_x32("state", S_IRUSR, root, &card->state);
391+
debugfs_create_x32("state", 0400, root, &card->state);
392392
}
393393

394394
void mmc_remove_card_debugfs(struct mmc_card *card)

0 commit comments

Comments
 (0)