#include <linux/io.h>
#include <linux/module.h>
#include <linux/nvmem-provider.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#define LPC18XX_OTP_NUM_BANKS …
#define LPC18XX_OTP_WORDS_PER_BANK …
#define LPC18XX_OTP_WORD_SIZE …
#define LPC18XX_OTP_SIZE …
struct lpc18xx_otp { … };
static int lpc18xx_otp_read(void *context, unsigned int offset,
void *val, size_t bytes)
{ … }
static struct nvmem_config lpc18xx_otp_nvmem_config = …;
static int lpc18xx_otp_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id lpc18xx_otp_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, lpc18xx_otp_dt_ids);
static struct platform_driver lpc18xx_otp_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;