From nobody Sun May 5 13:32:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1669385229; cv=none; d=zohomail.com; s=zohoarc; b=P2bGOMgmvBMMKUoImm5Tya1r007oXLJAlgaQX5KjOB1GaPOlQbCYAJ3TNr1NX9raM5A36yM40YWS2dYl7vQdszthrlmOmIcO7OeVtPYyt7BIYz6fsEtVLHP3DgUNGAs6f+mT57OR8TfWAG88TTyoZBF14lX51GsBAyjsfFLaD8o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669385229; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject; bh=CEZgkTUK8/7o+OF64BRHrgO8GkoUS6kIA2tJ0VRVvCU=; b=GgWpQddpFqGmyEQRKqMeSHdZQXZZCpOqWRLvpnU7PQfrKVqXLyB/nSeZiMpWie7mwNOu7oFvMBrBKxgGSbPUKo2Ipmy83mbNxKZCrxJyCSmb9RjQrxBE+pAYJ5X2UkxcPflzBtrPL7FeH65bwhRHuRqBzd93qOsyGNvKJFrmJBM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1669385229891315.932297576921; Fri, 25 Nov 2022 06:07:09 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyZLz-0001Rf-0A; Fri, 25 Nov 2022 09:06:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyZLx-0001RW-U2 for qemu-devel@nongnu.org; Fri, 25 Nov 2022 09:06:53 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyZLw-00018U-F8 for qemu-devel@nongnu.org; Fri, 25 Nov 2022 09:06:53 -0500 Received: by mail-pj1-x1030.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so7819303pjc.3 for ; Fri, 25 Nov 2022 06:06:51 -0800 (PST) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id y23-20020a17090264d700b00189667acf15sm1706427pli.162.2022.11.25.06.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 06:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CEZgkTUK8/7o+OF64BRHrgO8GkoUS6kIA2tJ0VRVvCU=; b=Bbzoch53u9J6PL3OUOAIUOThQOTz4FmKBGsT89Xg1CE0mlKRHcSHJ4BScNjH5p7lpo QtaBkp5au1yOmFY+gd8xh5+RDpHwc0rKs1ASMRzcdPxsAzt+JGAZtSQV6oK2xg25jnfl ry9FA85VoEL+rIq3s7WhG+C0Am/bsSSdLejHbqsAYoi7RfeKsV/i4rhUB/fsIIG/07pZ wDciunxGoaHXP86CrKD/PAWwigGJxew8YaVwt8836gNXazGqNIPmniWvEkDLfEBUjMDr jUTiuerwLLVYejvZrxBSznKRRT9qdw2g8Fwa+kc+pActebkmrmks8iSy/QYIqq174DvH O5jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CEZgkTUK8/7o+OF64BRHrgO8GkoUS6kIA2tJ0VRVvCU=; b=6fL1mDtzk52S/kswx4A1WK2GYRmEtbq69FYQxpC3gC8rZoAoeW8zF8U2G1QBQv9ylm pAYnZmmOe47i3T6RqoRwx5qos053MpBfLh1oQ6wGowsHrv8AerYUzXoY0/ewEsRHJASc HDZBbBp1SofC8iYIkEiuJxm7aN8CbRCGikiQV/81AJCNTVZe+FNei65xmGF+fVmDiB6c lgnuqnMkXK3sIuCsiCHALaNDVMcxUhxzYAhWP9wMR1e2YAL/VOGfvFyxF8RimTvag3gL yavsFzuxZWNRDKx/Zn0G4cg4xRKZOqvkO3FYd2svUPW+2IHgq6BJ5Voevqwf8hucQiZC 1nEQ== X-Gm-Message-State: ANoB5pnQq0oOIN9BJIeCamerpyEvXvGo0Ah2ZWw25OgOWmjMQVuotwtq 9RK9VC2r/Dcs98JE9PF3g/ABxQL6lFM0Kw== X-Google-Smtp-Source: AA0mqf4zMZzZ/oW1yKEoXBgKRILxCRhLOVa+OF+D6wPC0lxUw7WtpecistnO7FlD2up2QGkrBgjWUw== X-Received: by 2002:a17:902:e013:b0:189:40ce:3ecc with SMTP id o19-20020a170902e01300b0018940ce3eccmr13240374plo.63.1669385210763; Fri, 25 Nov 2022 06:06:50 -0800 (PST) From: Akihiko Odaki To: Cc: qemu-devel@nongnu.org, Damien Hedde , Peter Maydell , Richard Henderson , Akihiko Odaki Subject: [PATCH] docs/devel/reset.rst: Correct function names Date: Fri, 25 Nov 2022 23:06:45 +0900 Message-Id: <20221125140645.56490-1-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::1030; envelope-from=akihiko.odaki@daynix.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1669385317223100001 Content-Type: text/plain; charset="utf-8" resettable_class_set_parent_phases() was mistakenly called resettable_class_set_parent_reset_phases() in some places. Signed-off-by: Akihiko Odaki Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- docs/devel/reset.rst | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/devel/reset.rst b/docs/devel/reset.rst index 7cc6a6b314..38ed1790f7 100644 --- a/docs/devel/reset.rst +++ b/docs/devel/reset.rst @@ -184,21 +184,20 @@ in reset. { MyDevClass *myclass =3D MYDEV_CLASS(class); ResettableClass *rc =3D RESETTABLE_CLASS(class); - resettable_class_set_parent_reset_phases(rc, - mydev_reset_enter, - mydev_reset_hold, - mydev_reset_exit, - &myclass->parent_phases); + resettable_class_set_parent_phases(rc, + mydev_reset_enter, + mydev_reset_hold, + mydev_reset_exit, + &myclass->parent_phases); } =20 In the above example, we override all three phases. It is possible to over= ride only some of them by passing NULL instead of a function pointer to -``resettable_class_set_parent_reset_phases()``. For example, the following= will +``resettable_class_set_parent_phases()``. For example, the following will only override the *enter* phase and leave *hold* and *exit* untouched:: =20 - resettable_class_set_parent_reset_phases(rc, mydev_reset_enter, - NULL, NULL, - &myclass->parent_phases); + resettable_class_set_parent_phases(rc, mydev_reset_enter, NULL, NULL, + &myclass->parent_phases); =20 This is equivalent to providing a trivial implementation of the hold and e= xit phases which does nothing but call the parent class's implementation of the --=20 2.38.1