Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp433374rwe; Wed, 24 Aug 2022 03:41:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR5SnRIMpofgH1kh0Gue7wdDk8jFM1ga6pp3/XttrOJm++ZRTVPLh3v8t4NK1g4gvepW2JCx X-Received: by 2002:a17:906:8c7:b0:730:c1a9:e187 with SMTP id o7-20020a17090608c700b00730c1a9e187mr2575915eje.55.1661337663568; Wed, 24 Aug 2022 03:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661337663; cv=none; d=google.com; s=arc-20160816; b=g8pBLgFqQ2o7TTvo2dTeXOy6fG09lW1GUVTQiB8Qh+O8CI/SbywiEBahioBxWFPzNo fvsA5kGIP80bpg1wTHyEL/vcNzvUFZfTomsuIJp4RP9UGIfSuarC/e9F5jLVZI/FRY6w eB1kE1OsKOcssxOdtSbukKbGtIQwxwuXJoY9tw9doW/C6HGGMQ0R110q3ki6CrZyKdfp 7qqMG8fjPnao1mYNMOTvr+eUsrdyC34Fn2n4fWLdf+BbK+APYbDAd1GZM0pZ3s/07vZs dAWBFnQGq1WDqxJGJhppymwXs1XUxxFXtup+5+QoS+AWjaOQNFfqBD+3gfb7PFf77vYc Zn3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eBTZqk3XG4I0DIew+BbIPdIsYk961dnj2iB7RR+Va8U=; b=Kbn2/7xk0knmT9BdSO7Va9awxz3avDKlcIMuMkifCymXvCUBP11iwQQ5CGQSrm96Sq rvWOZD4ka8LPfn6isByxepAkRsIcNospUAPm4i7G25uWjFx9nMcAk7b5vOq8zv5+S/sx 4LuJl3moW9+n8Gvzdxq4hbD7ZrUmRY6fMqITpGdZJN/OXQvw8ObrqbQafB0I6SgOg/0C 20/TkuoWwIzIfyh50rTay+57N0nMWoEJJblPLvWl46wcF1AJz9WI0Jzty09RK6b9Vp33 0LQLCDVE73Kb7kzv9Enm7uqgAJRywpx8OyIluqedmlR/l16LTnI6Wpna2aVXXP4hEhQW EQHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=PEVBdtiH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js15-20020a17090797cf00b0073d83bc660asi1595592ejc.566.2022.08.24.03.40.36; Wed, 24 Aug 2022 03:41:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=PEVBdtiH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236646AbiHXKGe (ORCPT + 99 others); Wed, 24 Aug 2022 06:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236619AbiHXKG0 (ORCPT ); Wed, 24 Aug 2022 06:06:26 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C0A449B58; Wed, 24 Aug 2022 03:06:25 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id C13E31C000B; Wed, 24 Aug 2022 12:06:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1661335583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eBTZqk3XG4I0DIew+BbIPdIsYk961dnj2iB7RR+Va8U=; b=PEVBdtiHzfTeRIrxPTbAJvKWpyCGDFNhUYuh3fwTt95t0ardN/tpplcP5y9e/GaFh8gE7q oTyWiMrRdM7FiqeRFayvCLiQQmCcloLNDnmLyfKU3d/S5wSOaWwgOmeby7OTTUP9IUNCLR XQa/C59LXTIMIzbv/wvZf685+0pNfCg= Date: Wed, 24 Aug 2022 12:06:22 +0200 From: Pavel Machek To: Hans de Goede Cc: PaddyKP_Yao , PaddyKP_Yao@asus.com, acpi4asus-user@lists.sourceforge.net, andy.shevchenko@gmail.com, corentin.chary@gmail.com, linux-kernel@vger.kernel.org, luke@ljones.dev, mgross@linux.intel.com, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH v3 1/1] platform/x86: asus-wmi: Add mic-mute LED classdev support Message-ID: <20220824100622.GB1049@bug> References: <20220711115125.2072508-1-PaddyKP_Yao@asus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Hi! > > LED is present by checking WMI ASUS_WMI_DEVID_MICMUTE_LED, we will add a > > mic-mute LED classdev, asus::micmute, in the asus-wmi driver to control > > it. The binding of mic-mute LED controls will be swithched with LED > > trigger. > > > > Signed-off-by: PaddyKP_Yao > > --- > > V1 -> V2: fix typo for 'present' and remove unnecessary pr_info() log > > V2 -> V3: resend patch again by gmail to avoid Asus legal in the mail > > Thank you for your patch, I've applied this patch to my review-hans > branch: > https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans > > Once I've run some tests on this branch the patches there will be > added to the platform-drivers-x86/for-next branch and eventually > will be included in the pdx86 pull-request to Linus for the next > merge-window. > > + if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_MICMUTE_LED)) { > > + asus->micmute_led.name = "asus::micmute"; It would be good to get the API right before it hits mainline release. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html