Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3281671lfo; Mon, 23 May 2022 00:36:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLTq0q+5Pnm+sxZZxq0+AHbxUC6YjPhtMzJCv4v1sKOTe0xotxXBzwdy+EOEyab2aUZp+b X-Received: by 2002:a17:902:9696:b0:158:f809:310e with SMTP id n22-20020a170902969600b00158f809310emr22089913plp.16.1653291419330; Mon, 23 May 2022 00:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653291419; cv=none; d=google.com; s=arc-20160816; b=CGsAjGZQz0F81g9oySIcTe94uae9Lxr664cPRM2ZLj2alOiXDtPiP9/boGwj4BApvl pvw0tQFkq22TCbsdjKnR9i8SDvgt71aRpiCYPmTOIFCAEyIN6GWNqRx2PS/nQAYSqjj+ kLrz88jzubw4i42xmHti9pt3H/+Cids3CTzDvhPXXjHhdEhxPPRKlqNH4wf/vZjKg9e5 VhMWhE3Zp0tvQatQq7WgJOYKuEwde/+Bp/vrYXubtyHwPHrXN+1e/fI58zizzgYZOEA+ C+hct1WrXrLiauXnVHr50nPGgGeQLk/rwwwXo9+TBOMYH1K+L2wmLWbQET6yAVUQ1jwE J7cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OlapgyOF88xrJLl2wtICNi6HO+gUokT48PIEhhY3NfY=; b=mFZDwEDIb6PyNNVqfDRcunbzqKh05/8+ovNDxDc8FbHCugSlvxDaO4jd5Uc07/zjQ5 CL7u40APoWvmWE1xBWlwbO51airIlNv5xsd4/gVtJYvVxZAMulsUPS4eSo5jP4t/H0+5 gzcVjhCJgd8Z+EzaCPODU97UzyTnF1s6Gs25zuIsIkd7P/+znLdGmPYCwPbz4PU7IcZA sqq/BSDYGZbs3v5gVYrdaY04HgdZ2/ClA5WjLtjp7qnLC4CP4B1VMadxyVvkPlMQ1WMx +RMP1HvWkA1V5twNCexmwdN6lsn8cTm0lQYKuW+RNgODExZd8fA3c/UPj0bOmFEP4+7R kCfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JM2Wnbp9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p1-20020a170902e74100b00153b2d1650bsi10586317plf.275.2022.05.23.00.36.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JM2Wnbp9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44D353DDEF; Sun, 22 May 2022 23:47:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352824AbiETSfC (ORCPT + 99 others); Fri, 20 May 2022 14:35:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352715AbiETSeq (ORCPT ); Fri, 20 May 2022 14:34:46 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8200C17CE74; Fri, 20 May 2022 11:34:45 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id h5so11478247wrb.11; Fri, 20 May 2022 11:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OlapgyOF88xrJLl2wtICNi6HO+gUokT48PIEhhY3NfY=; b=JM2Wnbp9SfIpxNvAGnQrmPhgkPsKZ+3+Y6eNoCYiVB4VZoqFIQ1J98FmTwWFoceoGI Pf87wVBPexMFtr/ikVADo2rzwK6ldy9TPvC7HvahlDO0LNvMOporm1HwmWBnfJ8x4CEq 5UqzpQlz6TDu4jT1lZcrEtZ6L8CA3hv+nfeBCLnRixpUiKIjVae5VzAmHxJ2GUIapoeo mrddCAafl3YzIrtLN1S7DiZ5HDklozaAOHgnW68tCXwDvmRKqoMwzW2BvB5zpc26JFjp pJ0BIPAkaBExr+d7TiveQ901Ssl+grOCApXtWjreKFfTPMfXZjF0qIZLFqVPAbWnzGKW CWXQ== 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=OlapgyOF88xrJLl2wtICNi6HO+gUokT48PIEhhY3NfY=; b=D9rje75Ye4H9iwtH+At4Ghin/8pfzRHYms32+uSpPgdO+9p6PeYiBQxLY+vaAxXVwX FOYh0k9a3cQxhoShWlpYE8dOUjFjPg9AsdgW6xPk0j8CYyofuIcQinSzokoYwSvEdzMm mfW4pB47Wko2ufebNI9+W5IFVYA8LQKDMDDoZfMV7aqmCL7To8N2osiCIfSjZWjrXxCr 8Xd21bmpptDhK0bdkv35Pd01QbXf/3JRtZI+wUdctgWnxVTadba9IHIPUOxxNhY0llUf tqQdvojPHSPipMVbs3QU0nUMBRygyFKILsafaZ/+pqemgfiNwsWBq5lGB/kLaETLLMY9 CRkg== X-Gm-Message-State: AOAM531N41VSqhb7p57/3KX7yqlxKuXpS36yQm2MQlRXE1JN1AtFNlfp bYj6RP5kFA2d6MiOu9NSjjE= X-Received: by 2002:adf:dbce:0:b0:20c:f507:8ef9 with SMTP id e14-20020adfdbce000000b0020cf5078ef9mr9417713wrj.29.1653071684093; Fri, 20 May 2022 11:34:44 -0700 (PDT) Received: from xws.localdomain (pd9e5a9fe.dip0.t-ipconnect.de. [217.229.169.254]) by smtp.gmail.com with ESMTPSA id r9-20020adfa149000000b0020e62feca05sm3252081wrr.32.2022.05.20.11.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 11:34:43 -0700 (PDT) From: Maximilian Luz To: Hans de Goede Cc: Maximilian Luz , Mark Gross , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] platform/surface: aggregator_registry: Use client device wrappers for notifier registration Date: Fri, 20 May 2022 20:34:15 +0200 Message-Id: <20220520183422.7185-4-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220520183422.7185-1-luzmaximilian@gmail.com> References: <20220520183422.7185-1-luzmaximilian@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use newly introduced client device wrapper functions for notifier registration and unregistration. Signed-off-by: Maximilian Luz --- drivers/platform/surface/surface_aggregator_registry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index ce2bd88feeaa..9f630e890ff7 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -468,7 +468,7 @@ static int ssam_base_hub_probe(struct ssam_device *sdev) ssam_device_set_drvdata(sdev, hub); - status = ssam_notifier_register(sdev->ctrl, &hub->notif); + status = ssam_device_notifier_register(sdev, &hub->notif); if (status) return status; @@ -480,7 +480,7 @@ static int ssam_base_hub_probe(struct ssam_device *sdev) return 0; err: - ssam_notifier_unregister(sdev->ctrl, &hub->notif); + ssam_device_notifier_unregister(sdev, &hub->notif); cancel_delayed_work_sync(&hub->update_work); ssam_remove_clients(&sdev->dev); return status; @@ -492,7 +492,7 @@ static void ssam_base_hub_remove(struct ssam_device *sdev) sysfs_remove_group(&sdev->dev.kobj, &ssam_base_hub_group); - ssam_notifier_unregister(sdev->ctrl, &hub->notif); + ssam_device_notifier_unregister(sdev, &hub->notif); cancel_delayed_work_sync(&hub->update_work); ssam_remove_clients(&sdev->dev); } -- 2.36.1