Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3199199pxv; Mon, 12 Jul 2021 11:40:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydLNbfn2U+pUmYjg88dLNm6tsN0aQKpjN7Md0gWGLq9K81cqtbkYjM0WcnIN3FH+fM7KHL X-Received: by 2002:aa7:db50:: with SMTP id n16mr257920edt.298.1626115212075; Mon, 12 Jul 2021 11:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626115212; cv=none; d=google.com; s=arc-20160816; b=sL6SZ6G7UgJ6uJF7Lrm0VlCG2tQGn+POf7ELrebFja9IJfwCYZWvVtB5AWYLNlWNND WZPzOsdokZYh0egozwCqDP8+pvlMXn6RrSZNmKCQPOfOYmyJRpi1oqzh9AC6/nTdG7iR FNgsruW7snWq+nXfB3k30QgW8HidQrCpxVsuPQIXDNG3CMvW4XQoosd9mGKF2A8mdSia J/S7z611FnYK4AssQOdi0KvDqJH+dNYlYhML3W8UPTrAKWKEZNuagFDBi6NHY9y8EEzi ho+qRXng6BILuFb9YybWJJzgKglaqxp/BX6r9zthkq92A3xcBpetEOOaktuKL7NGEZaC FK9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=OfP+6Rrz6prKhoktB8ixeQydnflXhUAdxrSN54Ktda8=; b=raM3ZAx5sIs83+TqY70DmWDbMKSs0CizTeOSR/LkmtJ8iBIxm7tRB6A0vGzhGkSjLw COKuYKGHDZHT32IC/mbMNLHxxEuKPosKsZVp/Il9dJE87t5nB8JCp0mAF9gSZ8Ljpbei 5+igBr/zU4wEF647YwaNRORVbVVpV1uiRj8vJcRVuj9O3ezWCR23xATvYf6ZdYwzvDBG FEyTtu7vPd2QpPPqUY++fAJSvJ7Cy/eTMhi4kdpplaYxjLCLrxGuzhwV3WDpLxPfdVgF y7rZExe4LIFlvfrOVMDIBrgPq0SMFHbygeT9sVDjcup0cBHBGp+Edr4wSnmmWlqEo32C BG7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si15293579edp.85.2021.07.12.11.39.48; Mon, 12 Jul 2021 11:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235870AbhGLSlR (ORCPT + 99 others); Mon, 12 Jul 2021 14:41:17 -0400 Received: from mail-ot1-f51.google.com ([209.85.210.51]:40556 "EHLO mail-ot1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbhGLSlR (ORCPT ); Mon, 12 Jul 2021 14:41:17 -0400 Received: by mail-ot1-f51.google.com with SMTP id v32-20020a0568300920b02904b90fde9029so5248382ott.7; Mon, 12 Jul 2021 11:38:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OfP+6Rrz6prKhoktB8ixeQydnflXhUAdxrSN54Ktda8=; b=UV5oY51P1Ig8+GehKVnSzw74BAy8AdzUFI0ciNInDyD1HgqSX1WYIxwj5nbGy29iVS KStDGIlZPirsvdl31YrsD36xI+m6xqxFYjU5bsWORUnJ9eamrpFRJ3pHNCmZ35aTlOEJ EHfDQcLhgnpzVqyGGw2jL75E5toDCUs7PLR/cR3fR108tO3e7OvYhc/ehoe9ol/Ch4+y NMSc2GDgIoSZiMNeg3vW3lZfyT/PPiRto1A0PZe3AoboPMv9i8k2i/o7ryS4LBvPEKYv QA4QROmoa6uBeDQAUbdwBIzxe5DsYQ+Lfl98eJC1tmg+9a65nWp6F1bui+6LPAAM5MMe Lduw== X-Gm-Message-State: AOAM5325fcSe7Y76OqJ1WPWSCD9/jBnU49nDh3smLSucb/40J7Wgay2Z TSS8lLCcUT6km+sqfH8doyfiS2koqZYtnC80Knc= X-Received: by 2002:a9d:604e:: with SMTP id v14mr327437otj.260.1626115108554; Mon, 12 Jul 2021 11:38:28 -0700 (PDT) MIME-Version: 1.0 References: <2780027.e9J7NaK4W3@kreacher> <8790139.CDJkKcVGEf@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 12 Jul 2021 20:38:17 +0200 Message-ID: Subject: Re: [PATCH v1 4/6] ACPI: glue: Eliminate acpi_platform_notify() To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Greg Kroah-Hartman , "Rafael J. Wysocki" , Linux ACPI , LKML , "Krogerus, Heikki" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 8:36 PM Andy Shevchenko wrote: > > On Mon, Jul 12, 2021 at 07:25:55PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Get rid of acpi_platform_notify() which is redundant and > > make device_platform_notify() in the driver core call > > acpi_device_notify() and acpi_device_notify_remove() directly. > > > + if (action == KOBJ_ADD) > > + acpi_device_notify(dev); > > + else if (action == KOBJ_REMOVE) > > + acpi_device_notify_remove(dev); > > In most of the cases we are using switch-case approach with > KOBJ_ADD/KOBJ_REMOVE. Would it make sense to keep that pattern? Well, this goes away in the next patches anyway.