From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582Ab3LQCe6 (ORCPT ); Mon, 16 Dec 2013 21:34:58 -0500 Received: from rtits2.realtek.com ([60.250.210.242]:46025 "EHLO rtits2.realtek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088Ab3LQCe5 (ORCPT ); Mon, 16 Dec 2013 21:34:57 -0500 X-SpamFilter-By: BOX Solutions SpamTrap 5.38 with qID rBH2Yjdx001078, This message is accepted by code: ctloc85258 From: To: CC: , , , , , Micky Ching Subject: [PATCH v3 0/2] mfd: rtsx: decrease driver size and add new device Date: Tue, 17 Dec 2013 10:36:57 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.29.41.103] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Micky Ching With the recent added support request of yet another device, the burden of duplicated code was becoming a little messy. To rectify is, we init rtl8411-like chips to 8411 param first, then modify the different values according each chip. And rtl8402 is supported from this patch. Micky Ching (2): mfd: rtsx: reduce code duplication in rtl8411 mfd: rtsx: add card reader rtl8402 drivers/mfd/rtl8411.c | 89 ++++++++++++++++++------------------------------ drivers/mfd/rtsx_pcr.c | 5 +++ drivers/mfd/rtsx_pcr.h | 9 +++++ 3 files changed, 48 insertions(+), 55 deletions(-) -- 1.7.9.5