tty/sysrq: Fix issues of code indent should use tabs
Fix issues of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com> Link: https://lore.kernel.org/r/1617779210-51576-3-git-send-email-tanxiaofei@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c4a4cded5
commit
149ad2c67b
@ -548,22 +548,22 @@ static int sysrq_key_table_key2index(int key)
|
|||||||
*/
|
*/
|
||||||
static const struct sysrq_key_op *__sysrq_get_key_op(int key)
|
static const struct sysrq_key_op *__sysrq_get_key_op(int key)
|
||||||
{
|
{
|
||||||
const struct sysrq_key_op *op_p = NULL;
|
const struct sysrq_key_op *op_p = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
i = sysrq_key_table_key2index(key);
|
i = sysrq_key_table_key2index(key);
|
||||||
if (i != -1)
|
if (i != -1)
|
||||||
op_p = sysrq_key_table[i];
|
op_p = sysrq_key_table[i];
|
||||||
|
|
||||||
return op_p;
|
return op_p;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __sysrq_put_key_op(int key, const struct sysrq_key_op *op_p)
|
static void __sysrq_put_key_op(int key, const struct sysrq_key_op *op_p)
|
||||||
{
|
{
|
||||||
int i = sysrq_key_table_key2index(key);
|
int i = sysrq_key_table_key2index(key);
|
||||||
|
|
||||||
if (i != -1)
|
if (i != -1)
|
||||||
sysrq_key_table[i] = op_p;
|
sysrq_key_table[i] = op_p;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __handle_sysrq(int key, bool check_mask)
|
void __handle_sysrq(int key, bool check_mask)
|
||||||
@ -587,8 +587,8 @@ void __handle_sysrq(int key, bool check_mask)
|
|||||||
orig_log_level = console_loglevel;
|
orig_log_level = console_loglevel;
|
||||||
console_loglevel = CONSOLE_LOGLEVEL_DEFAULT;
|
console_loglevel = CONSOLE_LOGLEVEL_DEFAULT;
|
||||||
|
|
||||||
op_p = __sysrq_get_key_op(key);
|
op_p = __sysrq_get_key_op(key);
|
||||||
if (op_p) {
|
if (op_p) {
|
||||||
/*
|
/*
|
||||||
* Should we check for enabled operations (/proc/sysrq-trigger
|
* Should we check for enabled operations (/proc/sysrq-trigger
|
||||||
* should not) and is the invoked operation enabled?
|
* should not) and is the invoked operation enabled?
|
||||||
@ -637,13 +637,13 @@ static int sysrq_reset_downtime_ms;
|
|||||||
|
|
||||||
/* Simple translation table for the SysRq keys */
|
/* Simple translation table for the SysRq keys */
|
||||||
static const unsigned char sysrq_xlate[KEY_CNT] =
|
static const unsigned char sysrq_xlate[KEY_CNT] =
|
||||||
"\000\0331234567890-=\177\t" /* 0x00 - 0x0f */
|
"\000\0331234567890-=\177\t" /* 0x00 - 0x0f */
|
||||||
"qwertyuiop[]\r\000as" /* 0x10 - 0x1f */
|
"qwertyuiop[]\r\000as" /* 0x10 - 0x1f */
|
||||||
"dfghjkl;'`\000\\zxcv" /* 0x20 - 0x2f */
|
"dfghjkl;'`\000\\zxcv" /* 0x20 - 0x2f */
|
||||||
"bnm,./\000*\000 \000\201\202\203\204\205" /* 0x30 - 0x3f */
|
"bnm,./\000*\000 \000\201\202\203\204\205" /* 0x30 - 0x3f */
|
||||||
"\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */
|
"\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */
|
||||||
"230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */
|
"230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */
|
||||||
"\r\000/"; /* 0x60 - 0x6f */
|
"\r\000/"; /* 0x60 - 0x6f */
|
||||||
|
|
||||||
struct sysrq_state {
|
struct sysrq_state {
|
||||||
struct input_handle handle;
|
struct input_handle handle;
|
||||||
@ -1108,7 +1108,7 @@ int sysrq_toggle_support(int enable_mask)
|
|||||||
EXPORT_SYMBOL_GPL(sysrq_toggle_support);
|
EXPORT_SYMBOL_GPL(sysrq_toggle_support);
|
||||||
|
|
||||||
static int __sysrq_swap_key_ops(int key, const struct sysrq_key_op *insert_op_p,
|
static int __sysrq_swap_key_ops(int key, const struct sysrq_key_op *insert_op_p,
|
||||||
const struct sysrq_key_op *remove_op_p)
|
const struct sysrq_key_op *remove_op_p)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user