2 * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or (at
7 * your option) any later version.
10 #include <linux/kernel.h>
12 int (*_vendor_read)(u32 id, void *pbuf, u32 size) = NULL;
13 int (*_vendor_write)(u32 id, void *pbuf, u32 size) = NULL;
15 int rk_vendor_read(u32 id, void *pbuf, u32 size)
18 return _vendor_read(id, pbuf, size);
21 EXPORT_SYMBOL(rk_vendor_read);
23 int rk_vendor_write(u32 id, void *pbuf, u32 size)
26 return _vendor_write(id, pbuf, size);
29 EXPORT_SYMBOL(rk_vendor_write);
31 int rk_vendor_register(void *read, void *write)
35 _vendor_write = write;
40 EXPORT_SYMBOL(rk_vendor_register);