From patchwork Thu Dec 12 03:39:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 181390 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp371366ile; Wed, 11 Dec 2019 19:40:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwAupLzwLYUSnERs/W5WaQWNzvK/hOb5Fi1gwtCN3ZoYOjABgYAh6clHI7i3N+Q9RPEseuo X-Received: by 2002:a9d:5616:: with SMTP id e22mr5429430oti.366.1576122011130; Wed, 11 Dec 2019 19:40:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576122011; cv=none; d=google.com; s=arc-20160816; b=wWtBgo+GdlPaKmjZ6bRd+qV0hlcAPEtkDjTVasq2xApkHU/lzk5UJtb0lsM32DhuQ4 2m/2tvWxrM17zwP9f8XasHWA6lgqXH9wZ/ZRlGIFcvh3FHiubs9ErDpqlBorKwsREYNm RIUfsIAbq48h/Ec1AQlg7J845OZLZagjuj+OeIrlmFXUVnPh4nk9n8q4qVSr/xW+LWk1 bNnxSp9bPrwUTg4JKhPPgPGWYI9LayzL+4qlKUgxxHF1DraNvXMI5+RIHARtgqja7/br V0XmjmU99hKqY3W0qMwqd0OKFUcA9BIfgH+tWx9a7BI3WFWylmSWcFoty3HSnNGZVCrm YR/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kXNfcm8RugRvLx+8tDCrP8xtPXlWVovW6jjDr10L6w4=; b=kxMLQsEuCYPyqlq8nFFZ5/9jbow2eZeVB9DxhqoFFst/yi2cpb5wCzuS3VSIz77wA0 lJjBwmBC+gTClg2fRxONws9+OarfQgtw8Udg3IJU4rgaXxlI+uWvYnVoFGXHJuTvsJ5Y b6G7HF3WEx1VZOR9C4wbIwGMzXuBLx5VQp9dwa+puQx+OYbYwBxnCnbidOE/UVGZiCab zeKm2stIy1OjHnH+uq5S1bJWM9Q2MFOTC2hiTqMizQ9ulqAl6zNVYoq6uxCrR3rZvrMk vnySQMIxNF7wFgp4a4fW7mxfcqnP/mPgmM/uYDE3nr+SYiB6KHnlZLi8fHPGJWa0+PJ5 Mi1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si2420519otk.201.2019.12.11.19.40.10; Wed, 11 Dec 2019 19:40:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727810AbfLLDkK (ORCPT + 1 other); Wed, 11 Dec 2019 22:40:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:58618 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727791AbfLLDkJ (ORCPT ); Wed, 11 Dec 2019 22:40:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 578A8AF65; Thu, 12 Dec 2019 03:40:08 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org, linux-leds@vger.kernel.org Cc: Jacek Anaszewski , Pavel Machek , Dan Murphy , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , sales@fdhisi.com Subject: [RFC 24/25] WIP: leds: tm1628: Prepare FD628 keys Date: Thu, 12 Dec 2019 04:39:51 +0100 Message-Id: <20191212033952.5967-25-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191212033952.5967-1-afaerber@suse.de> References: <20191212033952.5967-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Extend definition with key input lines. Cc: sales@fdhisi.com Signed-off-by: Andreas Färber --- drivers/leds/leds-tm1628.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.16.4 diff --git a/drivers/leds/leds-tm1628.c b/drivers/leds/leds-tm1628.c index 410f34234811..2caf1e63fc90 100644 --- a/drivers/leds/leds-tm1628.c +++ b/drivers/leds/leds-tm1628.c @@ -669,6 +669,8 @@ static const struct tm1628_info fd628_info = { .seg_mask = GENMASK(14, 12) | GENMASK(10, 1), .modes = tm1628_modes, .default_mode = 3, + .k_mask = GENMASK(2, 1), + .ks_mask = GENMASK(10, 1), .pwm_map = tm1628_pwm_map, .default_pwm = 0, };