Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp341545ybl; Wed, 11 Dec 2019 19:42:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwNYKAoom1jhIEWIm+UYYnRG4AMBPvXDs5a0JeIBGJIbk2uv6xXLx+zLna6HQSW4wiDR2c+ X-Received: by 2002:a9d:7e8c:: with SMTP id m12mr5811175otp.346.1576122138149; Wed, 11 Dec 2019 19:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576122138; cv=none; d=google.com; s=arc-20160816; b=Hm1Sg1BjhhvyagUzPI2Nv9oBDFnCeZ97RSrEkaQTVtmUbOMTSMlgbUB4xJrXrW3cCY gYaS+e2IeaUJQg0UYBWNMz7N1wOcgVm/Z+XU5DV0MK5mRIwCb8nMvmoCdIK5gXjQUn7J U1lWHzbczjYGndCbOI7xaKQXBwyWiNpJh75YmOCKFftc4Qakb3jNZ03Xj/5Gylmknm+/ aefGrU2tzrXkNCuHyxruqYtKOBTUajAp5J2F35kEf+l/ctm0mr9H0DA+FUfQtqwxRxvq 3AxkKIQ7l4UDFkB6bCXfc1SraPtVlIrEbAbSmTHmMYJBfM6n8AbGN0p83nrUImQORlfX iaQQ== 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=w3bk21B9ZhHCNWhMsct4Id8M08Tb7Q0xfBdV7VzeShc=; b=rKiW25ziK6YYO5hwSahNV844R22H9mU9V5fQSZfDv/1ITurT2jKGiDLkjnIXxjHaGO H3MO4ruPd4k0xYvmzfbRG0lpcKRuENERc+0OoXMSH8jKg8p6M/BvtUSLDj/6GqGtjLpn sR5fDKckQJuYoLyefjfKBRAMfr7TLdr8U2VYDtqtBPpu+ZWhtlkA9Cov5XoL/rTBo2dh eiBI2YBwN4vX3lHJFTvdICylW7w45pc0oBuEGrPFGS/3Qu0IScnZy4CNL+2D23ZQsXIU 8vzqx599gf/wD0zJWVfexZT83LJso5aK4HsrbrAZjs4yLT1LJtYORQBTuDHT6dCEVECD Qgqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 o21si2642229ote.320.2019.12.11.19.42.05; Wed, 11 Dec 2019 19:42:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727923AbfLLDkU (ORCPT + 99 others); Wed, 11 Dec 2019 22:40:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:59168 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727749AbfLLDkJ (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 CD6E8AF27; Thu, 12 Dec 2019 03:40:07 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=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=20F=C3=A4rber?= , zypeng@titanmec.com Subject: [RFC 23/25] WIP: leds: tm1628: Prepare TM1628 keys Date: Thu, 12 Dec 2019 04:39:50 +0100 Message-Id: <20191212033952.5967-24-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend TM1628 definition with key input lines. Cc: zypeng@titanmec.com Signed-off-by: Andreas Färber --- drivers/leds/leds-tm1628.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/leds/leds-tm1628.c b/drivers/leds/leds-tm1628.c index 0c0d099de8b0..410f34234811 100644 --- a/drivers/leds/leds-tm1628.c +++ b/drivers/leds/leds-tm1628.c @@ -43,6 +43,8 @@ struct tm1628_info { u16 seg_mask; const struct tm1628_mode *modes; int default_mode; + u8 k_mask; + u16 ks_mask; const struct pwm_capture *pwm_map; int default_pwm; }; @@ -656,6 +658,8 @@ static const struct tm1628_info tm1628_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, }; -- 2.16.4