Files
linux-rockchip/include/linux/rockchip/nvmem.h
Tao Huang c506bab7ff nvmem: rockchip-secure-otp: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8968fdbbbb6db89dbd94ce547b9dc5d37e928d6d
2025-01-21 11:17:45 +08:00

27 lines
749 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2023 Rockchip Electronics Co., Ltd.
* Author: Hisping <hisping.lin@rock-chips.com>
*/
#ifndef __ROCKCHIP_NVMEM_H
#define __ROCKCHIP_NVMEM_H
#if IS_REACHABLE(CONFIG_NVMEM_ROCKCHIP_SEC_OTP)
int rockchip_read_oem_non_protected_otp(unsigned int byte_off,
void *byte_buf, size_t byte_len);
int rockchip_write_oem_non_protected_otp(unsigned int byte_off,
void *byte_buf, size_t byte_len);
#else
static inline int rockchip_read_oem_non_protected_otp(unsigned int byte_off,
void *byte_buf, size_t byte_len)
{
return -EINVAL;
}
static inline int rockchip_write_oem_non_protected_otp(unsigned int byte_off,
void *byte_buf, size_t byte_len)
{
return -EINVAL;
}
#endif
#endif