Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932157AbbKCGwo (ORCPT ); Tue, 3 Nov 2015 01:52:44 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:40355 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbbKCGwm (ORCPT ); Tue, 3 Nov 2015 01:52:42 -0500 Subject: Re: [PATCH RESEND 00/16] Support TI LMU devices To: Lee Jones References: <1446441875-1256-1-git-send-email-milo.kim@ti.com> <20151102085924.GP4058@x1> CC: , From: "Kim, Milo" Message-ID: <56385998.5080006@ti.com> Date: Tue, 3 Nov 2015 15:52:08 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20151102085924.GP4058@x1> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1518 Lines: 34 Hi Lee, On 11/2/2015 5:59 PM, Lee Jones wrote: >> drivers/video/backlight/Kconfig | 62 ++ >> > drivers/video/backlight/Makefile | 7 + >> > drivers/video/backlight/lm3532_bl.c | 183 +++++ >> > drivers/video/backlight/lm3631_bl.c | 129 ++++ >> > drivers/video/backlight/lm3632_bl.c | 125 ++++ >> > drivers/video/backlight/lm3633_bl.c | 210 ++++++ >> > drivers/video/backlight/lm3695_bl.c | 91 +++ >> > drivers/video/backlight/lm3697_bl.c | 187 +++++ >> > drivers/video/backlight/ti-lmu-backlight.c | 429 ++++++++++++ >> > drivers/video/backlight/ti-lmu-backlight.h | 152 +++++ > How different are all of these drivers? > > Can you create one driver that supports them all instead? > Thanks for your suggestion. 'ti-lmu-backlight' is the common part of lmxxxx_bl drivers. And each lmxxx_bl has its own operation functions by using ti_lmu_bl_ops. I've tried to make consolidated driver but it contained too much device specific code in one file. So I prefer simple drivers structure - 'common part' and 'device specific operations'. It would be appreciated if you could introduce better idea. Best regards, Milo -- 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/