From nobody Tue Feb 10 20:31:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) client-ip=209.85.128.49; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f49.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1635613710; cv=none; d=zohomail.com; s=zohoarc; b=ky6x+ZkDGkpYwSG85ORJ4eggHVIdg4UY80oHWzEcs3K/B4U+aeLHRfmxj0t0uBFMKQRoEm+j7rNq0etVbtvSif2aHVHYWQMjKSL8pzdM2kobgjO+dwNe6ktJ3Y8IGQBpRn300XDHm64mFFtmt+muIUwsjneKoJGISK/3NcOLhPQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635613710; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YSsZNkyD3Zes1gnfTeUQlqwahoB1RipDt5E4DXFrMSg=; b=XsEI5n6LBDKZpNwlIFz9/bMs32Q1rYsuqbYt5BYWtQ7P0hsON6XESk0Zi5whf1dqQyfyQjMIWNJr70E/I+dRQ+zf21+jRsThhi8e7Ij9CzetzdeV5ozI6kZOuh65PWO3NLCD3Ga5/I8FizstsQier3HVeXWI50JtQHVbaPKDJ6w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.zohomail.com with SMTPS id 1635613710573858.4846339147354; Sat, 30 Oct 2021 10:08:30 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id g13so2151604wmg.2 for ; Sat, 30 Oct 2021 10:08:30 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (62.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.62]) by smtp.gmail.com with ESMTPSA id q14sm8680327wrr.28.2021.10.30.10.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Oct 2021 10:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YSsZNkyD3Zes1gnfTeUQlqwahoB1RipDt5E4DXFrMSg=; b=l6fP6LUeWn5DwLqP0DQJjBS74Xu4NGi/97c946kOlYutRcfHZCthjeu6WpcuSCsVh6 zjuV+b8aoVFhHgsCkhXrDG3dLJkcjx9Qo92E5AUDy05DBpMsfVdjMoGPZjXkyT8ccepp fEUTfLY1B0UGTGMM3OnI29aTH2LVNMtu/B8VTHs+6wHROuJkozbU2xCXbYSuIQ0PVzYo G5AQJsUHYYz8nV33KoDraU/05uoGo9FSL8JHN4JqYmkbXjvkHcRiQxJVAt4n7pyKkbKM daWf0r2XpLD+c/GJZf3Z/S9A3a7XMpYZ9bY3TkpupYdlQeeDf62/BrhEeY0HT/1aAdgv 9yxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=YSsZNkyD3Zes1gnfTeUQlqwahoB1RipDt5E4DXFrMSg=; b=uxRzEdUFRgNkiheZvloH1ab8kWVpgH0k87p274Kig2HTTjQIkK3SkgvLdFuqug5rtd 5xC0y+3ZDhTtBlGxTZ+jHuLiuerja8XZhDBgGZwhwbM7zsiZum+Ky9x4wut77ie7kvBC rIHDBiv2eafnF/qgNSwSmicZXD8hlXYzcauuP6GA4dj7a/KV6SVVtWlcYfASTG/BLIRi wGeWFaMgqFEmcxvbcfX9utmCb8yIWs63X5FXJeyR0V1AlWnsrpyZOpZcdj1WbH6dDNxK SGDJAdW4Yga7nCV+Ujq7A5wDX9yZqTFqbdSY0ZumElz/Z7x5zkeLYqAksAqWdA4R7bcL 3HWg== X-Gm-Message-State: AOAM5337tTCftSt3HJ/xyZtDdxwFtlgvTA+KeBu9LYfQ62RJJ5AhurYO gsENX6pWRlmiO4rUsqTFU7A= X-Google-Smtp-Source: ABdhPJxtUifmFzB+p5EnMCGiL6gJBZVC9fMiYRcnghK00s/WKHKWTl9P/cMcza4mgN8IgftkIq3Zag== X-Received: by 2002:a1c:f30a:: with SMTP id q10mr28314483wmq.62.1635613708762; Sat, 30 Oct 2021 10:08:28 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Yoshinori Sato , Magnus Damm , Paolo Bonzini , BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 27/30] hw/timer/sh_timer: Rename sh_timer_state to SHTimerState Date: Sat, 30 Oct 2021 19:06:12 +0200 Message-Id: <20211030170615.2636436-28-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211030170615.2636436-1-f4bug@amsat.org> References: <20211030170615.2636436-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1635613712209100001 From: BALATON Zoltan According to coding style types should be camel case, also remove unneded casts from void *. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/timer/sh_timer.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/timer/sh_timer.c b/hw/timer/sh_timer.c index e1b6145df82..2038adfb0a8 100644 --- a/hw/timer/sh_timer.c +++ b/hw/timer/sh_timer.c @@ -45,11 +45,11 @@ typedef struct { int feat; int enabled; qemu_irq irq; -} sh_timer_state; +} SHTimerState; =20 /* Check all active timers, and schedule the next timer interrupt. */ =20 -static void sh_timer_update(sh_timer_state *s) +static void sh_timer_update(SHTimerState *s) { int new_level =3D s->int_level && (s->tcr & TIMER_TCR_UNIE); =20 @@ -62,7 +62,7 @@ static void sh_timer_update(sh_timer_state *s) =20 static uint32_t sh_timer_read(void *opaque, hwaddr offset) { - sh_timer_state *s =3D (sh_timer_state *)opaque; + SHTimerState *s =3D opaque; =20 switch (offset >> 2) { case OFFSET_TCOR: @@ -85,7 +85,7 @@ static uint32_t sh_timer_read(void *opaque, hwaddr offset) static void sh_timer_write(void *opaque, hwaddr offset, uint32_t value) { - sh_timer_state *s =3D (sh_timer_state *)opaque; + SHTimerState *s =3D opaque; int freq; =20 switch (offset >> 2) { @@ -200,7 +200,7 @@ static void sh_timer_write(void *opaque, hwaddr offset, =20 static void sh_timer_start_stop(void *opaque, int enable) { - sh_timer_state *s =3D (sh_timer_state *)opaque; + SHTimerState *s =3D opaque; =20 trace_sh_timer_start_stop(enable, s->enabled); ptimer_transaction_begin(s->timer); @@ -216,14 +216,14 @@ static void sh_timer_start_stop(void *opaque, int ena= ble) =20 static void sh_timer_tick(void *opaque) { - sh_timer_state *s =3D (sh_timer_state *)opaque; + SHTimerState *s =3D opaque; s->int_level =3D s->enabled; sh_timer_update(s); } =20 static void *sh_timer_init(uint32_t freq, int feat, qemu_irq irq) { - sh_timer_state *s; + SHTimerState *s; =20 s =3D g_malloc0(sizeof(*s)); s->freq =3D freq; @@ -259,7 +259,7 @@ typedef struct { static uint64_t tmu012_read(void *opaque, hwaddr offset, unsigned size) { - tmu012_state *s =3D (tmu012_state *)opaque; + tmu012_state *s =3D opaque; =20 trace_sh_timer_read(offset); if (offset >=3D 0x20) { @@ -289,7 +289,7 @@ static uint64_t tmu012_read(void *opaque, hwaddr offset, static void tmu012_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - tmu012_state *s =3D (tmu012_state *)opaque; + tmu012_state *s =3D opaque; =20 trace_sh_timer_write(offset, value); if (offset >=3D 0x20) { --=20 2.31.1