Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965030AbbHKKgS (ORCPT ); Tue, 11 Aug 2015 06:36:18 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:50337 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964993AbbHKKf6 (ORCPT ); Tue, 11 Aug 2015 06:35:58 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-4a-55c9d00b01d9 Message-id: <55C9D006.9070104@samsung.com> Date: Tue, 11 Aug 2015 12:35:50 +0200 From: Jacek Anaszewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-version: 1.0 To: Ricardo Ribalda Delgado Cc: Linux LED Subsystem , LKML , Bryan Wu , Richard Purdie , stsp@users.sourceforge.net, Andrew Lunn , Peter Meerwald Subject: Re: [PATCH/RFC v5 25/57] leds: pca963x: Remove work queue References: <1439285890-27329-1-git-send-email-j.anaszewski@samsung.com> <1439285890-27329-26-git-send-email-j.anaszewski@samsung.com> In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGLMWRmVeSWpSXmKPExsVy+t/xy7rcF06GGvTelrQ4f/cQs8XRnROZ LC7vmsNmsfXNOkaLvkOSFl3d85gsdu96ymrR2TeNxYHDY8W9u0weO2fdZffYueMzk8ee+T9Y PZpOtbN6fN4kF8AWxWWTkpqTWZZapG+XwJXx9ewJloLznBWbVqQ0MLawdzFyckgImEh8vtnA DGGLSVy4t56ti5GLQ0hgKaPEjY6bUM4zRokpt7+xglTxCmhJLDl6hQXEZhFQlfg0vRlsEpuA ocTPF6+ZQGxRgQiJP6f3QdULSvyYfA+sXkTAXOLyh06wocwCPUwSC4+tB1stLOAkMelVM9S2 84wSP/v/gXVwCgRL7N77EGwqs4CZxKOWdcwQtrzE5jVvmScwCsxCsmQWkrJZSMoWMDKvYhRN LU0uKE5KzzXUK07MLS7NS9dLzs/dxAgJ/S87GBcfszrEKMDBqMTDm+l9MlSINbGsuDL3EKME B7OSCC/HaaAQb0piZVVqUX58UWlOavEhRmkOFiVx3rm73ocICaQnlqRmp6YWpBbBZJk4OKUa GG3+OS44mfT6dLLkyoC2I1+YmW46ynvP0S6QDG6ZbD93ZvHtu9m+szc/360aLvCTXUKCnzf0 xIYlaVPuVteZH+JSUjYJNzj0YufL5RdfJ8RH8y2eFbLg47Ics9e/9IUvHis4zehzoPbvum2J rCs/6R6Nn1ZtVrj5DM/xrd83CS5dEdiisomxv1uJpTgj0VCLuag4EQC/p0M9eQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1428 Lines: 53 Hi Ricardo, Thanks for the review. On 08/11/2015 12:00 PM, Ricardo Ribalda Delgado wrote: > Hello Jacek > > Sorry for the late reply. > > On Tue, Aug 11, 2015 at 11:37 AM, Jacek Anaszewski > wrote: > > >> struct pca963x_led { >> struct pca963x *chip; >> - struct work_struct work; >> enum led_brightness brightness; >> struct led_classdev led_cdev; >> int led_num; /* 0 .. 15 potentially */ >> - enum pca963x_cmd cmd; >> char name[32]; >> u8 gdc; >> u8 gfrq; >> }; > > Maybe you want to remove also brightness, gdc and gfrq and pass them > as arguments to the functions. > >> -static void pca963x_blink_work(struct pca963x_led *pca963x) >> +static void pca963x_blink(struct pca963x_led *pca963x) > > something like: blink(pca963x, gdc, gfrq) OK, I'll check it. > > Big disclaimer: i havent tested it on real hardware. Maybe next week I > can get hold of a board with a pca chip. > > > BTW: great thing that the work queue is implemented in the core :) So far it is only in this patch set, but hopefully we will manage to merge it soon. -- Best Regards, Jacek Anaszewski -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/