From patchwork Mon Jul 4 09:33:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 587122 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1ec:0:0:0:0 with SMTP id 12csp653012map; Mon, 4 Jul 2022 02:48:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7YkV1cjKvH70odQGmHGN7Pxpps1moA98PyHzQedE/cvrmUl+yWZoA5FvVvuY6cmuKANgZ X-Received: by 2002:a25:e7d4:0:b0:66c:899b:49c6 with SMTP id e203-20020a25e7d4000000b0066c899b49c6mr32372711ybh.291.1656928132183; Mon, 04 Jul 2022 02:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656928132; cv=none; d=google.com; s=arc-20160816; b=ptU5GMQhC73uPvPG7wPdA9dPS9Yex7BDqnJDpKLInrlh2G+X9iMnLksOKVDtM5CgKZ pi0qi50sZuqcdNnc1iYptULW0vXg4DbbafOSK0ycPTdZcDxRaT+saVBof0LIFjFwedCT SVGyKZIyw1hJ1ojzpIDKs3SLYgIfThEE1gB/Epz4n1LDeB8On4pTgRjArTd+sqT4QcEK DcqLCnervQyHmaWKhouajCm1KnzM//y/CutJM3Kunb6xez0BVdin9ofQ/NLpE5n757Hz qkDtNKJwDyLsE5tUe5VSFwH2IxJFA9fs9OWTsPiP2XK/EcHfISKvArhRVJ/TWDh3fLbu Iohw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KLxJ4chZNuNpDDQM5NlCpPKbylj0kM6OFqhANtAh+c4=; b=kelTllgMlN5BoXswon2CV93glb1hE3oHWVhyL123r0yWnfQ1f8zT84GQauUqaYTLb5 dMD/Sdo7gfXYzcjEulr3lJ/MQ0P1wFUAPhC/5g8SWFSgNWt1Q2ZFWEXag5asEqM5Oo76 oezjv1t2yHhXG0WIVhkAyuWPtJsJfb6KAhc9pqiIJNHxXLo9UzgEHhU/bR39RIv/AbSt 8mnY3/4/Luow/ka0uIZbp6HoKydYzE0a+sT602srwiofyT59WbKvTFH9nLO6EgPJo1PO n79GvZElKTaMLr4ZHcm2cDwrKEufvQG1SB9Jk/QM2HCeLnQvicZI2oaiHG+VtrEYUUDG +F5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tfJnwHHO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n125-20020a255983000000b00668222552f7si36529955ybb.40.2022.07.04.02.48.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jul 2022 02:48:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tfJnwHHO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8IhH-0006Qc-Ll for patch@linaro.org; Mon, 04 Jul 2022 05:48:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8ITu-0001dK-7E for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:35:02 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:35540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8ITs-000521-HB for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:35:01 -0400 Received: by mail-pf1-x42c.google.com with SMTP id x4so8470729pfq.2 for ; Mon, 04 Jul 2022 02:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KLxJ4chZNuNpDDQM5NlCpPKbylj0kM6OFqhANtAh+c4=; b=tfJnwHHOcW4hxiHZB+asP7qW8X2X0KhPR9yVoKGchdafW57f8TfNhqGo/hgB/Qft1I oVJpspguugYx6VGOqXre48GcIVnpI5p/LJRE4ZRd4g2CChp2luMsLiL2IjbBg7Wv2c4D qtjp5U4nHxBy33EJBQMxkRWammOVTKqrKeMiAtIT0fnlnUqUSl21KbXpp0RVEqRftUYj GRQh9Cpfi4JjDhDrsyNIZDM9pxlaXkvbfm3b1EDeuUgp82jaOXPl6NgpfKiaZi9YGYAA K1FR1AHyN1i5PKFKv8314AErGV8zneTaIjs1m0R5JZKIBisuZo0lCljCIofNFvhrSSg7 ZUSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KLxJ4chZNuNpDDQM5NlCpPKbylj0kM6OFqhANtAh+c4=; b=NoyA3xTQcuPCFTwUWPnRLCbkqAKna7rf/yyqZxC0bNrLwYZkYQoDl4QqvbK3nfJ+Is iM3/HPgNu9nbWNXL2oY8gP1yX6kKH3C8PzdaBvqvfikCDjdVrQiv5T5fOZYCiOX3o8Ll 5e2+S2sP3sHgb4XJ3+AKlzAV7hljHEaly4KRUWPYV1MvTDCXlf+T3dp5+JOCyhIt5wUB 5S7sH30xxYlSnOS7PcKcRlLpOCjMh1GJfL3puWCY+9xftISMkVLMdUjUQxzlBuMdEnGx 3guFvO+EkW2kfi379kw4ygRK9AKU3RCEwanUJDnzIJz++DdiDpJ4tLIEex7mvH2mExNl 9MuQ== X-Gm-Message-State: AJIora8aXXdvP9oQJS6mvhC78R5AV7b5ghp6paSS2ugrD68ZeDfnGl4o oiqMjyIAoiNZfvScT6AUh4pEA/uZ47bpkRiE X-Received: by 2002:a63:106:0:b0:40d:2db:1c92 with SMTP id 6-20020a630106000000b0040d02db1c92mr24748337pgb.571.1656927299234; Mon, 04 Jul 2022 02:34:59 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id z5-20020aa79e45000000b00525b7f3e906sm15353355pfq.27.2022.07.04.02.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 02:34:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Xiaojuan Yang Subject: [PULL 21/23] hw/rtc/ls7a_rtc: Fix 'calculate' spelling errors Date: Mon, 4 Jul 2022 15:03:55 +0530 Message-Id: <20220704093357.983255-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220704093357.983255-1-richard.henderson@linaro.org> References: <20220704093357.983255-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Xiaojuan Yang Fix 'calculate' spelling errors. Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Message-Id: <20220701093407.2150607-8-yangxiaojuan@loongson.cn> Signed-off-by: Richard Henderson --- hw/rtc/ls7a_rtc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/rtc/ls7a_rtc.c b/hw/rtc/ls7a_rtc.c index 85cd2d22a5..e8b75701e4 100644 --- a/hw/rtc/ls7a_rtc.c +++ b/hw/rtc/ls7a_rtc.c @@ -156,7 +156,7 @@ static void toymatch_write(LS7ARtcState *s, uint64_t val, int num) /* it do not support write when toy disabled */ if (toy_enabled(s)) { s->toymatch[num] = val; - /* caculate expire time */ + /* calculate expire time */ now = qemu_clock_get_ms(rtc_clock); toymatch_val_to_time(s, val, &tm); expire_time = now + (qemu_timedate_diff(&tm) - s->offset_toy) * 1000; @@ -171,7 +171,7 @@ static void rtcmatch_write(LS7ARtcState *s, uint64_t val, int num) /* it do not support write when toy disabled */ if (rtc_enabled(s)) { s->rtcmatch[num] = val; - /* caculate expire time */ + /* calculate expire time */ expire_ns = ticks_to_ns(val) - ticks_to_ns(s->offset_rtc); timer_mod_ns(s->rtc_timer[num], expire_ns); } @@ -181,7 +181,7 @@ static void ls7a_toy_stop(LS7ARtcState *s) { int i; - /* delete timers, and when re-enabled, recaculate expire time */ + /* delete timers, and when re-enabled, recalculate expire time */ for (i = 0; i < TIMER_NUMS; i++) { timer_del(s->toy_timer[i]); } @@ -191,7 +191,7 @@ static void ls7a_rtc_stop(LS7ARtcState *s) { int i; - /* delete timers, and when re-enabled, recaculate expire time */ + /* delete timers, and when re-enabled, recalculate expire time */ for (i = 0; i < TIMER_NUMS; i++) { timer_del(s->rtc_timer[i]); } @@ -205,7 +205,7 @@ static void ls7a_toy_start(LS7ARtcState *s) now = qemu_clock_get_ms(rtc_clock); - /* recaculate expire time and enable timer */ + /* recalculate expire time and enable timer */ for (i = 0; i < TIMER_NUMS; i++) { toymatch_val_to_time(s, s->toymatch[i], &tm); expire_time = now + (qemu_timedate_diff(&tm) - s->offset_toy) * 1000; @@ -218,7 +218,7 @@ static void ls7a_rtc_start(LS7ARtcState *s) int i; uint64_t expire_time; - /* recaculate expire time and enable timer */ + /* recalculate expire time and enable timer */ for (i = 0; i < TIMER_NUMS; i++) { expire_time = ticks_to_ns(s->rtcmatch[i]) - ticks_to_ns(s->offset_rtc); timer_mod_ns(s->rtc_timer[i], expire_time);