Commit 84b0f12a authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

pvpanic: Indentation fixes here and there

1) replace double spaces with single;
2) relax line width limitation a bit.
Reviewed-by: default avatarMihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210829124354.81653-3-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cc5b392d
...@@ -24,8 +24,7 @@ MODULE_AUTHOR("Hu Tao <hutao@cn.fujitsu.com>"); ...@@ -24,8 +24,7 @@ MODULE_AUTHOR("Hu Tao <hutao@cn.fujitsu.com>");
MODULE_DESCRIPTION("pvpanic-mmio device driver"); MODULE_DESCRIPTION("pvpanic-mmio device driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
static ssize_t capability_show(struct device *dev, static ssize_t capability_show(struct device *dev, struct device_attribute *attr, char *buf)
struct device_attribute *attr, char *buf)
{ {
struct pvpanic_instance *pi = dev_get_drvdata(dev); struct pvpanic_instance *pi = dev_get_drvdata(dev);
......
...@@ -19,11 +19,10 @@ ...@@ -19,11 +19,10 @@
#define PCI_DEVICE_ID_REDHAT_PVPANIC 0x0011 #define PCI_DEVICE_ID_REDHAT_PVPANIC 0x0011
MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>"); MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>");
MODULE_DESCRIPTION("pvpanic device driver "); MODULE_DESCRIPTION("pvpanic device driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
static ssize_t capability_show(struct device *dev, static ssize_t capability_show(struct device *dev, struct device_attribute *attr, char *buf)
struct device_attribute *attr, char *buf)
{ {
struct pvpanic_instance *pi = dev_get_drvdata(dev); struct pvpanic_instance *pi = dev_get_drvdata(dev);
...@@ -65,8 +64,7 @@ static struct attribute *pvpanic_pci_dev_attrs[] = { ...@@ -65,8 +64,7 @@ static struct attribute *pvpanic_pci_dev_attrs[] = {
}; };
ATTRIBUTE_GROUPS(pvpanic_pci_dev); ATTRIBUTE_GROUPS(pvpanic_pci_dev);
static int pvpanic_pci_probe(struct pci_dev *pdev, static int pvpanic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
const struct pci_device_id *ent)
{ {
struct pvpanic_instance *pi; struct pvpanic_instance *pi;
void __iomem *base; void __iomem *base;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "pvpanic.h" #include "pvpanic.h"
MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>"); MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>");
MODULE_DESCRIPTION("pvpanic device driver "); MODULE_DESCRIPTION("pvpanic device driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
static struct list_head pvpanic_list; static struct list_head pvpanic_list;
...@@ -43,8 +43,7 @@ pvpanic_send_event(unsigned int event) ...@@ -43,8 +43,7 @@ pvpanic_send_event(unsigned int event)
} }
static int static int
pvpanic_panic_notify(struct notifier_block *nb, unsigned long code, pvpanic_panic_notify(struct notifier_block *nb, unsigned long code, void *unused)
void *unused)
{ {
unsigned int event = PVPANIC_PANICKED; unsigned int event = PVPANIC_PANICKED;
...@@ -96,8 +95,7 @@ static int pvpanic_init(void) ...@@ -96,8 +95,7 @@ static int pvpanic_init(void)
INIT_LIST_HEAD(&pvpanic_list); INIT_LIST_HEAD(&pvpanic_list);
spin_lock_init(&pvpanic_lock); spin_lock_init(&pvpanic_lock);
atomic_notifier_chain_register(&panic_notifier_list, atomic_notifier_chain_register(&panic_notifier_list, &pvpanic_panic_nb);
&pvpanic_panic_nb);
return 0; return 0;
} }
...@@ -105,8 +103,7 @@ module_init(pvpanic_init); ...@@ -105,8 +103,7 @@ module_init(pvpanic_init);
static void pvpanic_exit(void) static void pvpanic_exit(void)
{ {
atomic_notifier_chain_unregister(&panic_notifier_list, atomic_notifier_chain_unregister(&panic_notifier_list, &pvpanic_panic_nb);
&pvpanic_panic_nb);
} }
module_exit(pvpanic_exit); module_exit(pvpanic_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment