Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6877662imm; Tue, 24 Jul 2018 04:51:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdwgkEzoxUvJBAZ+ji4L5aKKyRoMbU9E4LNDNYOood8KS2h49vDsonGhe6QTIWPTGwJHzv6 X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr16296759pgb.274.1532433096011; Tue, 24 Jul 2018 04:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532433095; cv=none; d=google.com; s=arc-20160816; b=RQuG+U+n3WKnmDMYxeiY2/P9ZSTv0hgbBOlSKHLVl3ILeJca7Lt9g58/O7jq99D8um lE89ugMKRkjMM1jtscQ/u3uRGyIQWf+uSgr8y3v6S72HKSvgzfzQn335uU+WjgIM5CMy CkWylvZEUa3JyT6yllnPVP/Jf35eCbwmIo3ldiehq/4d0iqwu9zrp5m2sx+2YUnHTvyA 9R5Z7PvByp3jVf3g9hemDW8g8Ej/drUsACJHaCns9m5xotjseDWmcapleV3eGKzCYVwg MsHvM3WU/42JqYqvQLszpEu2eCUBLR9K8IHgOE9JNao83lHVpjrnUI2N3j6sFAk9QgPb p37Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=vrTzzna1qi9nRaIOC3vrE9s4U3I5L1LBVaNm+fpGwH0=; b=nykmHRnW35Ad34IYtzPSzz+EjjRlxTYmelnNCSs95+S5HpMvLDihEiAsGKyjpspn36 30voA9Dyat3KqNO1DcLhys2e8ckm0sXZA+ylH9XV4mSHeHIA9V6LVbrj0bU6k4TTM5Qo mw34EXxcT0I20YuDEFulVLg2Br7kYvN5V0K8cKAG3hfcyPDGZsoWqCPG3BSHY0J+auV/ NWrDbmiXJoIvd+teAJrthyLvRwRxvteAXLrS1s/TAtiqEi7ZvtOpAlHHX71mR290fdYe 9okwXDBnf0CTGH9fJ5CdzZFgBU1NzHDoOhltQQS+ttOpvTiDB4nagvRrgx+JURehrae/ /6Nw== 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 z137-v6si10645869pgz.144.2018.07.24.04.51.21; Tue, 24 Jul 2018 04:51:35 -0700 (PDT) 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 S2388319AbeGXM4i (ORCPT + 99 others); Tue, 24 Jul 2018 08:56:38 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51871 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388248AbeGXM4h (ORCPT ); Tue, 24 Jul 2018 08:56:37 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 82C3F80558; Tue, 24 Jul 2018 13:50:30 +0200 (CEST) Date: Tue, 24 Jul 2018 13:50:29 +0200 From: Pavel Machek To: Baolin Wang Cc: Jacek Anaszewski , David Lechner , Bjorn Andersson , Mark Brown , Linux LED Subsystem , LKML Subject: Re: [PATCH v3 1/2] leds: core: Introduce generic pattern interface Message-ID: <20180724115029.GB26036@amd> References: <20180714223907.GB2776@amd> <1138f834-e805-6076-bb5b-aa1fdc1f2606@gmail.com> <2c3a8911-150a-9b25-2a66-a9432047f96b@lechnology.com> <68996338-a902-2b57-0bb9-df274a496b06@gmail.com> <20180718075637.GA10279@amd> <913151e4-c19f-9a22-697c-52a9fb48cb32@gmail.com> <0e0cd8f7-dc73-6733-65f2-9a14506b0f0e@gmail.com> <20180718221717.GA5451@amd> <20180719202005.GA7763@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Thanks for showing your thoughts. But I failed to compile your code, > would you like to send out formal patches (Or only including software > pattern, I will help to add hardware pattern part and do some testing > with our driver)? Thanks. Random thoughts: I am not sure "struct led_pattern" makes sense. Maybe array of integers would be enough? Should we have structure with whole array and length of the pattern? struct led_pattern { int len; struct led_pattern steps[]; } Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltXEoUACgkQMOfwapXb+vJevwCcDDL5WHbHc6p8n8hwo+Ez8mSM p48An3ZN6n7oYAPg/OVMhhySBVsYlUgR =Q6GI -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX--