]> git.ipfire.org Git - thirdparty/linux.git/blob - drivers/lightnvm/lightnvm.h
lightnvm: propagate device_add() error code
[thirdparty/linux.git] / drivers / lightnvm / lightnvm.h
1 /*
2 * Copyright (C) 2016 CNEX Labs. All rights reserved.
3 * Initial release: Matias Bjorling <matias@cnexlabs.com>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License version
7 * 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
17 * USA.
18 *
19 */
20
21 #ifndef LIGHTNVM_H
22 #define LIGHTNVM_H
23
24 #include <linux/lightnvm.h>
25
26 /* core -> sysfs.c */
27 int __must_check nvm_sysfs_register_dev(struct nvm_dev *);
28 void nvm_sysfs_unregister_dev(struct nvm_dev *);
29 int nvm_sysfs_register(void);
30 void nvm_sysfs_unregister(void);
31
32 /* sysfs > core */
33 void nvm_free(struct nvm_dev *);
34
35 #endif