mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
![John Whitmore](/assets/img/avatar_default.png)
Remove the typedef directive from enumerated type opt_rst_type_e, this change clears the checkpatch issue with defining new types in the code. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore <johnfwhitmore@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 lines
371 B
C
19 lines
371 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __INC_FIRMWARE_H
|
|
#define __INC_FIRMWARE_H
|
|
|
|
#define GET_COMMAND_PACKET_FRAG_THRESHOLD(v) \
|
|
(4 * ((v) / 4) - 8 - USB_HWDESC_HEADER_LEN)
|
|
|
|
enum firmware_init_step_e {
|
|
FW_INIT_STEP0_BOOT = 0,
|
|
FW_INIT_STEP1_MAIN = 1,
|
|
FW_INIT_STEP2_DATA = 2,
|
|
};
|
|
|
|
enum opt_rst_type_e {
|
|
OPT_SYSTEM_RESET = 0,
|
|
OPT_FIRMWARE_RESET = 1,
|
|
};
|
|
|
|
#endif
|