diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2009-09-18 20:51:23 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:43 -0500 |
commit | 243cd13ca99858aacbaa401771ca77b00bd3082f (patch) | |
tree | 02e1c160372a8bbd048c056f21c5435e26dfe48e /hw/musicpal.c | |
parent | 708afdf3a4f626a69f3fad5c31e61fbc297157b5 (diff) | |
download | qemu-243cd13ca99858aacbaa401771ca77b00bd3082f.tar.gz qemu-243cd13ca99858aacbaa401771ca77b00bd3082f.tar.bz2 qemu-243cd13ca99858aacbaa401771ca77b00bd3082f.zip |
musicpal: Clean up typecasts
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/musicpal.c')
-rw-r--r-- | hw/musicpal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/musicpal.c b/hw/musicpal.c index f92c442dd2..e1dc6dada8 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@ -478,7 +478,7 @@ static void lcd_invalidate(void *opaque) static void musicpal_lcd_gpio_brigthness_in(void *opaque, int irq, int level) { - musicpal_lcd_state *s = (musicpal_lcd_state *) opaque; + musicpal_lcd_state *s = opaque; s->brightness &= ~(1 << irq); s->brightness |= level << irq; } @@ -1011,7 +1011,7 @@ static void musicpal_gpio_brightness_update(musicpal_gpio_state *s) { static void musicpal_gpio_pin_event(void *opaque, int pin, int level) { - musicpal_gpio_state *s = (musicpal_gpio_state *) opaque; + musicpal_gpio_state *s = opaque; uint32_t mask = 1 << pin; uint32_t delta = level << pin; uint32_t old = s->in_state & mask; @@ -1028,7 +1028,7 @@ static void musicpal_gpio_pin_event(void *opaque, int pin, int level) static uint32_t musicpal_gpio_read(void *opaque, target_phys_addr_t offset) { - musicpal_gpio_state *s = (musicpal_gpio_state *) opaque; + musicpal_gpio_state *s = opaque; switch (offset) { case MP_GPIO_OE_HI: /* used for LCD brightness control */ @@ -1067,7 +1067,7 @@ static uint32_t musicpal_gpio_read(void *opaque, target_phys_addr_t offset) static void musicpal_gpio_write(void *opaque, target_phys_addr_t offset, uint32_t value) { - musicpal_gpio_state *s = (musicpal_gpio_state *) opaque; + musicpal_gpio_state *s = opaque; switch (offset) { case MP_GPIO_OE_HI: /* used for LCD brightness control */ s->lcd_brightness = (s->lcd_brightness & MP_GPIO_LCD_BRIGHTNESS) | @@ -1176,7 +1176,7 @@ typedef struct musicpal_key_state { static void musicpal_key_event(void *opaque, int keycode) { - musicpal_key_state *s = (musicpal_key_state *) opaque; + musicpal_key_state *s = opaque; uint32_t event = 0; int i; |