Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp883262lqp; Thu, 21 Mar 2024 20:40:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUhw+mEwnPeEVV5oO7GFvlCp+CMi/rtj5uwZRvTmlhrtYiqPLd2mMPH44ZcUJM5st5wnQDB/2rMW/HmIzBTRLq57244Quulo5b7r/iHQ== X-Google-Smtp-Source: AGHT+IGjNB4O/6yuOHaXjjHslB9PWAeDp2wWKjh2H+GslWUG5ZjXpoeuHu0Rr0DgYI5DVcPap/iT X-Received: by 2002:a17:90a:654c:b0:29b:38c0:b933 with SMTP id f12-20020a17090a654c00b0029b38c0b933mr1307056pjs.8.1711078819411; Thu, 21 Mar 2024 20:40:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711078819; cv=pass; d=google.com; s=arc-20160816; b=OofA3rFwvK0P3SnvpZbKXlOGi5EU28uf//CKY2B5oX1Q1dUo233F0WYy+cbBcNnsgQ MZyzuZqel9Xt08DE4T73MSJqoU0bJak5C3+hx2Prus+hIhJuT/og+Xq2ixMoB8kQySOv AWug6mgLOuZcSVu4kdo3ZNkLU8viiAnrOHDvadOR0bRF/l4V/7wh1fqwexfEeO1YwqQa VcEWy5ycciFWy049hN17Ko6VF5Uu2rzUqnPUVRW4W3yrFuUsPvRWoBveYd416Hq87c0G 2nrr9+SsWvqywx5yXpiGSYpvz2mjz9lsh++dl7XVhVELkDY282gkGTqKjdS3GbKztc33 64FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Y5liH5XREjRdtzIi3oVOZVrr4OfiHuxXZ9yg0sczK48=; fh=rR1YVieb+I/qLcCLZHAv1ZNp7A4yTriVfUgwkCIFD60=; b=QCWvRrU86QAzsd4qGAGE8pGlfVw3h50fPZI6hrlh1PD0WzXS3+6WtFu/f1buzloQjq KdzUXtko6xU4q4+Y/TdqhoTuyNWRNzSS+VBpnr/BH9Rz5ALhoxdwJM7YZ7FA/sBEwyff iaiF5m2M20N00QIubtIoNKjBJYCrGLHEWl3VB2owxBl4ALJ+Fujj8/8W6kJrlND+Mirm Bk+LjTvYdVDIN8m1LrZAtU3L55s3n1e2hJGmYKPn+52IR/UsUUR2atBS2dPnkfLlLoG5 NN5cGf2DLR6cdziJF14tMB6UvLCepBIcFzvWgyWma5O9531yWcX2ZZ2pbkiiLvh/6diE 5t2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Atw759O9; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-110913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v9-20020a17090a898900b0029bb5a4c03esi1145764pjn.96.2024.03.21.20.40.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 20:40:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Atw759O9; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-110913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 16BB2285FD1 for ; Fri, 22 Mar 2024 03:40:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF59E168A8; Fri, 22 Mar 2024 03:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Atw759O9" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 998FB15AD0 for ; Fri, 22 Mar 2024 03:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711078751; cv=none; b=nRjxu3b61qM825dEXUz0UrsYjwYJ94H16NiegRQk+K6KjSUtHaEpSRFUvI5NXbZCWlnLW/BOR9q8mYIddbpR1zGIGZIgbVjd0suIg7R408CVKqJ469YCkfllv4CELBOUaibwCgrN1WjWnNyj2YkwstAd0q7MuWHsuRRmwc6JmlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711078751; c=relaxed/simple; bh=iSR4eVTv9vBjTyoy0u2zQ1BJB3q/2JhCssOVrTNtf8o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UmMzOdzQeyKSJzf8ync4j5h++53nGIH2AsQALLvtTub4zoddBLMdhvRDhqbsdNanf4MO5zjqUGcKv8n3+l2NrbSIkEwL7FJb7y9G4jwG2UmkWNaYQGKkbbSrQVW/S6I8crUMfunaLrZl+GJqgFJQlNiEsZQDJOvT5rFPbclad/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Atw759O9; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711078748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y5liH5XREjRdtzIi3oVOZVrr4OfiHuxXZ9yg0sczK48=; b=Atw759O9Xo5fDlJSGK4noCn7U3dzjwXwri+qR3Y0vucAy7p/4mEJyNZ2PeeVdYrRiJa92z 8GFYK7KlWXk+9bZP5XYJiKN4y2y4Xq4ZBZpeMX26EGk8cLcRS8tds2PZ0+LHVcCGXj4Hs5 Y8Lu737A4MgE9eRRDgN03RYkiJ3/5ko= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-562-xgIKYZ3uPyOjt1NOjtfm7Q-1; Thu, 21 Mar 2024 23:39:04 -0400 X-MC-Unique: xgIKYZ3uPyOjt1NOjtfm7Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 72E038AD561; Fri, 22 Mar 2024 03:39:03 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 20A96200E1B2; Fri, 22 Mar 2024 03:38:57 +0000 (UTC) From: Kate Hsuan To: Pavel Machek , Lee Jones , linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , =?UTF-8?q?Andr=C3=A9=20Apitzsch?= , linux-kernel@vger.kernel.org, Sebastian Reichel , linux-pm@vger.kernel.org Cc: Kate Hsuan Subject: [PATCH v5 6/6] platform: x86-android-tablets: others: Set the LED trigger to charging_red_full_green for Xiaomi pad2 Date: Fri, 22 Mar 2024 11:37:36 +0800 Message-ID: <20240322033736.9344-7-hpa@redhat.com> In-Reply-To: <20240322033736.9344-1-hpa@redhat.com> References: <20240322033736.9344-1-hpa@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 Set the default trigger to bq27520-0-charging-red-full-green. The LED will show red when the battery is charging. The LED will show green when the battery status is full. Signed-off-by: Kate Hsuan --- drivers/platform/x86/x86-android-tablets/other.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/x86-android-tablets/other.c b/drivers/platform/x86/x86-android-tablets/other.c index 1012a158f7b7..eccfea7b01c0 100644 --- a/drivers/platform/x86/x86-android-tablets/other.c +++ b/drivers/platform/x86/x86-android-tablets/other.c @@ -610,7 +610,7 @@ static const struct property_entry ktd2026_rgb_led_props[] = { PROPERTY_ENTRY_U32("reg", 0), PROPERTY_ENTRY_U32("color", LED_COLOR_ID_RGB), PROPERTY_ENTRY_STRING("function", "indicator"), - PROPERTY_ENTRY_STRING("linux,default-trigger", "bq27520-0-charging"), + PROPERTY_ENTRY_STRING("linux,default-trigger", "bq27520-0-charging-red-full-green"), { } }; -- 2.44.0