Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVS: replace dev_name parameter by device reference in nvs_init() #33625

Closed
nvlsianpu opened this issue Mar 23, 2021 · 1 comment
Closed

NVS: replace dev_name parameter by device reference in nvs_init() #33625

nvlsianpu opened this issue Mar 23, 2021 · 1 comment
Labels
RFC Request For Comments: want input from the community

Comments

@nvlsianpu
Copy link
Collaborator

Introduction

int nvs_init(struct nvs_fs *fs, const char *dev_name) might take device name which will help with cases when device_name is unknow to use.

Problem description

#33346 make flash_area API and flash_map operates with direct knowledge of flash device reference. Device name is still an option.
As NVS fetch device reference right in initialization, using device reference directly would be straight forward step.

Proposed change

change nvs API so nvs_init will API become:

int nvs_init(struct nvs_fs *fs, const struct device *dev)
@nvlsianpu nvlsianpu added the RFC Request For Comments: want input from the community label Mar 23, 2021
@nvlsianpu
Copy link
Collaborator Author

closing in favor to #33627

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comments: want input from the community
Projects
None yet
Development

No branches or pull requests

1 participant