Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pvpanic: Indentation fixes here and there

1) replace double spaces with single;
2) relax line width limitation a bit.

Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210829124354.81653-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
84b0f12a cc5b392d

+12 -18
+3 -4
drivers/misc/pvpanic/pvpanic-mmio.c
··· 24 24 MODULE_DESCRIPTION("pvpanic-mmio device driver"); 25 25 MODULE_LICENSE("GPL"); 26 26 27 - static ssize_t capability_show(struct device *dev, 28 - struct device_attribute *attr, char *buf) 27 + static ssize_t capability_show(struct device *dev, struct device_attribute *attr, char *buf) 29 28 { 30 29 struct pvpanic_instance *pi = dev_get_drvdata(dev); 31 30 ··· 32 33 } 33 34 static DEVICE_ATTR_RO(capability); 34 35 35 - static ssize_t events_show(struct device *dev, struct device_attribute *attr, char *buf) 36 + static ssize_t events_show(struct device *dev, struct device_attribute *attr, char *buf) 36 37 { 37 38 struct pvpanic_instance *pi = dev_get_drvdata(dev); 38 39 39 40 return sysfs_emit(buf, "%x\n", pi->events); 40 41 } 41 42 42 - static ssize_t events_store(struct device *dev, struct device_attribute *attr, 43 + static ssize_t events_store(struct device *dev, struct device_attribute *attr, 43 44 const char *buf, size_t count) 44 45 { 45 46 struct pvpanic_instance *pi = dev_get_drvdata(dev);
+5 -7
drivers/misc/pvpanic/pvpanic-pci.c
··· 19 19 #define PCI_DEVICE_ID_REDHAT_PVPANIC 0x0011 20 20 21 21 MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>"); 22 - MODULE_DESCRIPTION("pvpanic device driver "); 22 + MODULE_DESCRIPTION("pvpanic device driver"); 23 23 MODULE_LICENSE("GPL"); 24 24 25 - static ssize_t capability_show(struct device *dev, 26 - struct device_attribute *attr, char *buf) 25 + static ssize_t capability_show(struct device *dev, struct device_attribute *attr, char *buf) 27 26 { 28 27 struct pvpanic_instance *pi = dev_get_drvdata(dev); 29 28 ··· 30 31 } 31 32 static DEVICE_ATTR_RO(capability); 32 33 33 - static ssize_t events_show(struct device *dev, struct device_attribute *attr, char *buf) 34 + static ssize_t events_show(struct device *dev, struct device_attribute *attr, char *buf) 34 35 { 35 36 struct pvpanic_instance *pi = dev_get_drvdata(dev); 36 37 37 38 return sysfs_emit(buf, "%x\n", pi->events); 38 39 } 39 40 40 - static ssize_t events_store(struct device *dev, struct device_attribute *attr, 41 + static ssize_t events_store(struct device *dev, struct device_attribute *attr, 41 42 const char *buf, size_t count) 42 43 { 43 44 struct pvpanic_instance *pi = dev_get_drvdata(dev); ··· 64 65 }; 65 66 ATTRIBUTE_GROUPS(pvpanic_pci_dev); 66 67 67 - static int pvpanic_pci_probe(struct pci_dev *pdev, 68 - const struct pci_device_id *ent) 68 + static int pvpanic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 69 69 { 70 70 struct pvpanic_instance *pi; 71 71 void __iomem *base;
+4 -7
drivers/misc/pvpanic/pvpanic.c
··· 23 23 #include "pvpanic.h" 24 24 25 25 MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>"); 26 - MODULE_DESCRIPTION("pvpanic device driver "); 26 + MODULE_DESCRIPTION("pvpanic device driver"); 27 27 MODULE_LICENSE("GPL"); 28 28 29 29 static struct list_head pvpanic_list; ··· 43 43 } 44 44 45 45 static int 46 - pvpanic_panic_notify(struct notifier_block *nb, unsigned long code, 47 - void *unused) 46 + pvpanic_panic_notify(struct notifier_block *nb, unsigned long code, void *unused) 48 47 { 49 48 unsigned int event = PVPANIC_PANICKED; 50 49 ··· 95 96 INIT_LIST_HEAD(&pvpanic_list); 96 97 spin_lock_init(&pvpanic_lock); 97 98 98 - atomic_notifier_chain_register(&panic_notifier_list, 99 - &pvpanic_panic_nb); 99 + atomic_notifier_chain_register(&panic_notifier_list, &pvpanic_panic_nb); 100 100 101 101 return 0; 102 102 } ··· 103 105 104 106 static void pvpanic_exit(void) 105 107 { 106 - atomic_notifier_chain_unregister(&panic_notifier_list, 107 - &pvpanic_panic_nb); 108 + atomic_notifier_chain_unregister(&panic_notifier_list, &pvpanic_panic_nb); 108 109 109 110 } 110 111 module_exit(pvpanic_exit);