mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-11 15:46:40 +02:00
59509da0cb
To enable a more generic approach for concatenating MTD devices, struct mtd_concat should be accessible beyond the mtdconcat driver. Therefore, the definition is being moved to a header file. Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
33 lines
735 B
C
33 lines
735 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* MTD device concatenation layer definitions
|
|
*
|
|
* Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de>
|
|
*/
|
|
|
|
#ifndef MTD_CONCAT_H
|
|
#define MTD_CONCAT_H
|
|
|
|
|
|
/*
|
|
* Our storage structure:
|
|
* Subdev points to an array of pointers to struct mtd_info objects
|
|
* which is allocated along with this structure
|
|
*
|
|
*/
|
|
struct mtd_concat {
|
|
struct mtd_info mtd;
|
|
int num_subdev;
|
|
struct mtd_info **subdev;
|
|
};
|
|
|
|
struct mtd_info *mtd_concat_create(
|
|
struct mtd_info *subdev[], /* subdevices to concatenate */
|
|
int num_devs, /* number of subdevices */
|
|
const char *name); /* name for the new device */
|
|
|
|
void mtd_concat_destroy(struct mtd_info *mtd);
|
|
|
|
#endif
|
|
|