Skip to content

Commit 0406d2e

Browse files
committed
kp: reformat with clang-format
config-from: https://raw.githubusercontent.com/torvalds/linux/master/.clang-format Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
1 parent e16f462 commit 0406d2e

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

main.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ static inline int kp_notifier_callback(struct notifier_block *self,
141141

142142
if (event != KP_EVENT_BLANK
143143
#ifdef CONFIG_AUTO_KPROFILES_MSM_DRM
144-
|| !evdata || !evdata->data
145-
|| evdata->id != MSM_DRM_PRIMARY_DISPLAY
144+
|| !evdata || !evdata->data || evdata->id != MSM_DRM_PRIMARY_DISPLAY
146145
#endif
147146
)
148147
return NOTIFY_OK;
@@ -195,8 +194,13 @@ static void kprofiles_unregister_notifier(void)
195194
}
196195

197196
#else
198-
static inline int kprofiles_register_notifier(void) { return 0; }
199-
static inline void kprofiles_unregister_notifier(void) { }
197+
static inline int kprofiles_register_notifier(void)
198+
{
199+
return 0;
200+
}
201+
static inline void kprofiles_unregister_notifier(void)
202+
{
203+
}
200204
#endif
201205

202206
static int __init kp_init(void)

0 commit comments

Comments
 (0)