treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / firmware / google / memconsole.h
blobaaff2b72b606e4ac3cde688d4171853bf2877db8
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * memconsole.h
5 * Internal headers of the memory based BIOS console.
7 * Copyright 2017 Google Inc.
8 */
10 #ifndef __FIRMWARE_GOOGLE_MEMCONSOLE_H
11 #define __FIRMWARE_GOOGLE_MEMCONSOLE_H
13 #include <linux/types.h>
16 * memconsole_setup
18 * Initialize the memory console, passing the function to handle read accesses.
20 void memconsole_setup(ssize_t (*read_func)(char *, loff_t, size_t));
23 * memconsole_sysfs_init
25 * Update memory console length and create binary file
26 * for firmware object.
28 int memconsole_sysfs_init(void);
30 /* memconsole_exit
32 * Unmap the console buffer.
34 void memconsole_exit(void);
36 #endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */