linux/drivers/mtd/ubi/nvmem.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2023 Daniel Golle <[email protected]>
 */

/* UBI NVMEM provider */
#include "ubi.h"
#include <linux/nvmem-provider.h>

/* List of all NVMEM devices */
static LIST_HEAD(nvmem_devices);
static DEFINE_MUTEX(devices_mutex);

struct ubi_nvmem {};

static int ubi_nvmem_reg_read(void *priv, unsigned int from,
			      void *val, size_t bytes)
{}

static int ubi_nvmem_add(struct ubi_volume_info *vi)
{}

static void ubi_nvmem_remove(struct ubi_volume_info *vi)
{}

/**
 * nvmem_notify - UBI notification handler.
 * @nb: registered notifier block
 * @l: notification type
 * @ns_ptr: pointer to the &struct ubi_notification object
 */
static int nvmem_notify(struct notifier_block *nb, unsigned long l,
			 void *ns_ptr)
{}

static struct notifier_block nvmem_notifier =;

static int __init ubi_nvmem_init(void)
{}

static void __exit ubi_nvmem_exit(void)
{}

module_init();
module_exit(ubi_nvmem_exit);
MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();