From patchwork Thu Aug 28 14:44:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 36234 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6C728202DD for ; Thu, 28 Aug 2014 14:45:05 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf8224574obc.1 for ; Thu, 28 Aug 2014 07:45:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=45sLqjypDbUf+E8ikurMIFCQGsHeIZNJpQSrGRqdh7w=; b=ApGPbT/gOSnX4H83+Ej0I3q1N+E/Y3m23q1mgxqW18c0pUcKbhAWoI1nK53fwDAOQa 6h18mBalH9Xrf6v0jtGL7DRY8RrTeul6sGEzW85+dxzmzdV0siW3S53My7CJiP6rzCzM tl3kpOBzsmx5YnSuaokUj7XD4h9teOL/KRVsRZU/Ugf3r89ZSRSgO9oy4q20LwO6hw58 h6QwoD4kPckO3NFxyUFnbltLarfAzGu/AjugFVYEYr/Rv8xlim2K/hLYVz5OrqkV6/R2 MnLkII4MKVTn1VMCrUYVecf1vXYRe+YUnEcf73Ujzt9IKZQvWy50NFW2UCbUdswmDHbS vJkw== X-Gm-Message-State: ALoCoQkNx5zb6si8edrBt+6zovH7bDRhVKhyhnpJGhUPkF+8kBlWHYMjHk8hmIBeMMIJ8yyuwv+8 X-Received: by 10.42.133.200 with SMTP id i8mr2778296ict.14.1409237105016; Thu, 28 Aug 2014 07:45:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.45 with SMTP id l42ls627045qga.61.gmail; Thu, 28 Aug 2014 07:45:04 -0700 (PDT) X-Received: by 10.52.15.36 with SMTP id u4mr1000712vdc.91.1409237104845; Thu, 28 Aug 2014 07:45:04 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id as9si3695216vdc.88.2014.08.28.07.45.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:45:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so912732vcb.21 for ; Thu, 28 Aug 2014 07:45:00 -0700 (PDT) X-Received: by 10.220.97.5 with SMTP id j5mr3749179vcn.16.1409237100416; Thu, 28 Aug 2014 07:45:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp248037vcb; Thu, 28 Aug 2014 07:45:00 -0700 (PDT) X-Received: by 10.140.103.75 with SMTP id x69mr6715318qge.17.1409237099914; Thu, 28 Aug 2014 07:44:59 -0700 (PDT) Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by mx.google.com with ESMTPS id i2si5928433qcd.30.2014.08.28.07.44.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:44:59 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.216.173 as permitted sender) client-ip=209.85.216.173; Received: by mail-qc0-f173.google.com with SMTP id w7so871123qcr.32 for ; Thu, 28 Aug 2014 07:44:59 -0700 (PDT) X-Received: by 10.224.95.74 with SMTP id c10mr6853258qan.35.1409237099548; Thu, 28 Aug 2014 07:44:59 -0700 (PDT) Received: from localhost.localdomain (host86-152-0-170.range86-152.btcentralplus.com. [86.152.0.170]) by mx.google.com with ESMTPSA id m45sm5802677qga.36.2014.08.28.07.44.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Aug 2014 07:44:58 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, Lee Jones Subject: [PATCH 1/4] mfd: 88pm860x-i2c: Purge unused functions Date: Thu, 28 Aug 2014 15:44:43 +0100 Message-Id: <1409237086-21421-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The following functions appear to be unused since v2.6.39: pm860x_page_reg_read() pm860x_page_bulk_write() pm860x_page_set_bits() Let's remove them. Signed-off-by: Lee Jones --- drivers/mfd/88pm860x-i2c.c | 64 ---------------------------------------------- 1 file changed, 64 deletions(-) diff --git a/drivers/mfd/88pm860x-i2c.c b/drivers/mfd/88pm860x-i2c.c index a93b4d0..7063cfd 100644 --- a/drivers/mfd/88pm860x-i2c.c +++ b/drivers/mfd/88pm860x-i2c.c @@ -140,26 +140,6 @@ static int write_device(struct i2c_client *i2c, int reg, return 0; } -int pm860x_page_reg_read(struct i2c_client *i2c, int reg) -{ - unsigned char zero = 0; - unsigned char data; - int ret; - - i2c_lock_adapter(i2c->adapter); - read_device(i2c, 0xFA, 0, &zero); - read_device(i2c, 0xFB, 0, &zero); - read_device(i2c, 0xFF, 0, &zero); - ret = read_device(i2c, reg, 1, &data); - if (ret >= 0) - ret = (int)data; - read_device(i2c, 0xFE, 0, &zero); - read_device(i2c, 0xFC, 0, &zero); - i2c_unlock_adapter(i2c->adapter); - return ret; -} -EXPORT_SYMBOL(pm860x_page_reg_read); - int pm860x_page_reg_write(struct i2c_client *i2c, int reg, unsigned char data) { @@ -195,47 +175,3 @@ int pm860x_page_bulk_read(struct i2c_client *i2c, int reg, return ret; } EXPORT_SYMBOL(pm860x_page_bulk_read); - -int pm860x_page_bulk_write(struct i2c_client *i2c, int reg, - int count, unsigned char *buf) -{ - unsigned char zero = 0; - int ret; - - i2c_lock_adapter(i2c->adapter); - read_device(i2c, 0xFA, 0, &zero); - read_device(i2c, 0xFB, 0, &zero); - read_device(i2c, 0xFF, 0, &zero); - ret = write_device(i2c, reg, count, buf); - read_device(i2c, 0xFE, 0, &zero); - read_device(i2c, 0xFC, 0, &zero); - i2c_unlock_adapter(i2c->adapter); - i2c_unlock_adapter(i2c->adapter); - return ret; -} -EXPORT_SYMBOL(pm860x_page_bulk_write); - -int pm860x_page_set_bits(struct i2c_client *i2c, int reg, - unsigned char mask, unsigned char data) -{ - unsigned char zero; - unsigned char value; - int ret; - - i2c_lock_adapter(i2c->adapter); - read_device(i2c, 0xFA, 0, &zero); - read_device(i2c, 0xFB, 0, &zero); - read_device(i2c, 0xFF, 0, &zero); - ret = read_device(i2c, reg, 1, &value); - if (ret < 0) - goto out; - value &= ~mask; - value |= data; - ret = write_device(i2c, reg, 1, &value); -out: - read_device(i2c, 0xFE, 0, &zero); - read_device(i2c, 0xFC, 0, &zero); - i2c_unlock_adapter(i2c->adapter); - return ret; -} -EXPORT_SYMBOL(pm860x_page_set_bits);