1 /*
2 *
3 * SPDX-License-Identifier: GPL-2.0
4 *
5 * Copyright (C) 2011-2018 ARM or its affiliates
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 *
18 */
19
20 #include "acamera_chardev.h"
21 #include "system_chardev.h"
22
acamera_chardev_init(void)23 int acamera_chardev_init( void )
24 {
25 return system_chardev_init();
26 }
27
acamera_chardev_read(void * unused,uint8_t * data,int size)28 int acamera_chardev_read( void *unused, uint8_t *data, int size )
29 {
30 return system_chardev_read( (char *)data, size );
31 }
32
acamera_chardev_write(void * unused,const uint8_t * data,int size)33 int acamera_chardev_write( void *unused, const uint8_t *data, int size )
34 {
35 return system_chardev_write( (char *)data, size );
36 }
37
acamera_chardev_destroy(void)38 int acamera_chardev_destroy( void )
39 {
40 return system_chardev_destroy();
41 }