musicpal: Fix typo in name of local function
PATCH 1/1 musicpal: Fix typo in name of local function
The misspelling was spotted by Andreas Färber.
--- hw/arm/musicpal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/arm/musicpal.c +2 -2
@@ -534,7 +534,7 @@ static void lcd_invalidate(void *opaque) { } -static void musicpal_lcd_gpio_brigthness_in (void *opaque,int irq,int level) +static void musicpal_lcd_gpio_brightness_in (void *opaque,int irq,int level) {musicpal_lcd_state *s = opaque; s->brightness &= ~(1 << irq);
@@ -619,7 +619,7 @@ static int musicpal_lcd_init(SysBusDevice *dev) s->con =graphic_console_init (DEVICE (dev), &musicpal_gfx_ops, s);qemu_console_resize (s->con,128 *3 ,64 *3 ); -qdev_init_gpio_in (&dev->qdev, musicpal_lcd_gpio_brigthness_in,3 ); +qdev_init_gpio_in (&dev->qdev, musicpal_lcd_gpio_brightness_in,3 );return 0 ; }
Signature · 1 line
1.7.10.4
Quoted 22 lines · Stefan Weil
The misspelling was spotted by Andreas Färber.
Signed-off-by Stefan Weil <[email protected]>--- hw/arm/musicpal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/musicpal.c +1
-1@@ -534,7 +534,7 @@ static void lcd_invalidate(void *opaque) { } -static void musicpal_lcd_gpio_brigthness_in (void *opaque,int irq,int level) +static void musicpal_lcd_gpio_brightness_in (void *opaque,int irq,int level) {musicpal_lcd_state *s = opaque; s->brightness &= ~(1 << irq);
hw/arm/musicpal.c static int musicpal_lcd_init(SysBusDevice *dev) · line 625
Quoted 8 lines
hw/arm/musicpal.c +1
-1@@ -619,7 +619,7 @@ static int musicpal_lcd_init(SysBusDevice *dev) s->con =graphic_console_init (DEVICE (dev), &musicpal_gfx_ops, s);qemu_console_resize (s->con,128 *3 ,64 *3 ); -qdev_init_gpio_in (&dev->qdev, musicpal_lcd_gpio_brigthness_in,3 ); +qdev_init_gpio_in (&dev->qdev, musicpal_lcd_gpio_brightness_in,3 );return 0 ; }
Am 28.07.2013 07:54, schrieb Stefan Weil:
Quoted 21 lines
The misspelling was spotted by Andreas Färber.
Signed-off-by Stefan Weil <[email protected]>--- hw/arm/musicpal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/musicpal.c +1
-1@@ -534,7 +534,7 @@ static void lcd_invalidate(void *opaque) { } -static void musicpal_lcd_gpio_brigthness_in (void *opaque,int irq,int level) +static void musicpal_lcd_gpio_brightness_in (void *opaque,int irq,int level) {musicpal_lcd_state *s = opaque; s->brightness &= ~(1 << irq);
hw/arm/musicpal.c static int musicpal_lcd_init(SysBusDevice *dev) · line 625
Quoted 8 lines
hw/arm/musicpal.c +1
-1@@ -619,7 +619,7 @@ static int musicpal_lcd_init(SysBusDevice *dev) s->con =graphic_console_init (DEVICE (dev), &musicpal_gfx_ops, s);qemu_console_resize (s->con,128 *3 ,64 *3 ); -qdev_init_gpio_in (&dev->qdev, musicpal_lcd_gpio_brigthness_in,3 ); +qdev_init_gpio_in (&dev->qdev, musicpal_lcd_gpio_brightness_in,3 );return 0 ; }
but to clarify: I had notified you not to send this small patch, which now conflicts with my argument cleanup, but to add this typo to your blacklist to check the whole codebase for similar typos. Are there none?
But since this is a sensible cleanup anyway, I'll just put a copy into my queue before the refactoring, to avoid merge conflicts with -trivial.
Thanks,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Am 28.07.2013 11:46, schrieb Andreas Färber:
Quoted 7 lines
Am 28.07.2013 07:54, schrieb Stefan Weil:
Quoted 6 lines
The misspelling was spotted by Andreas Färber.
Signed-off-by Stefan Weil <[email protected]>--- hw/arm/musicpal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
[...]
Quoted 11 lines
Quoted 11 lines
Reviewed-by Andreas Färber <[email protected]>but to clarify: I had notified you not to send this small patch, which now conflicts with my argument cleanup, but to add this typo to your blacklist to check the whole codebase for similar typos. Are there none?
But since this is a sensible cleanup anyway, I'll just put a copy into my queue before the refactoring, to avoid merge conflicts with -trivial.
Thanks,
Andreas
Codespell uses a list of common misspellings which is an enhanced versionof
https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.
"Brigthness" was not among those words. Even if it were, codespell would not detect it in a composed word like musicpal_lcd_gpio_brigthness_in.
With some small modifications (split words at [-_]), codespell detects more misspellings in QEMU: bandwith, issueing, propietary, threshhold.
Even more could be detected by analysing composed words.
Regards,
Stefan