From patchwork Mon Jan 12 19:21:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 5615731 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 77C3A9F3A0 for ; Mon, 12 Jan 2015 19:28:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF7FB202EC for ; Mon, 12 Jan 2015 19:28:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6FE5202EB for ; Mon, 12 Jan 2015 19:28:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755908AbbALT1y (ORCPT ); Mon, 12 Jan 2015 14:27:54 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:57713 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754199AbbALT1w (ORCPT ); Mon, 12 Jan 2015 14:27:52 -0500 Received: by mail-wi0-f182.google.com with SMTP id h11so16919908wiw.3; Mon, 12 Jan 2015 11:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8MX2p1cGZFwXUZ/+EHZQ772/Zcs1w9i53MI29/J8tyU=; b=IokO4NpX6/AOX1kbw47v7B3N9nbDAJIlHARGnxMErxur45iY/8qgBBDA5x4fZJSoBK QUMuC6yJT2WpLD/Xn+UrxlaBm6bZiPU9qjAAIqc9etQT1/dqBrVEISra5Cnu0ttsYPOY NMLIsld8oNJkiB89ZkTU4HlIVJkGs9PX9FYtvQcDiWsNfD/VI0H/4BBYdqyAPbEJD5kh Yh1vR5RquaPnjFLgexm4FMY2avHyNlszPfwn4pRDv7Pcs/IKsM56bUL6IG/GBLoBk53H cc0DZrsA2cZEAp4e6f3VpZEHk45ezgF3RecOiVVxkQiQroESrRZ6TuBNsmL5AlK97I9F Xe0Q== X-Received: by 10.180.101.131 with SMTP id fg3mr25583793wib.36.1421090489131; Mon, 12 Jan 2015 11:21:29 -0800 (PST) Received: from tango-charlie.Home ([94.10.25.115]) by mx.google.com with ESMTPSA id x16sm11351985wia.15.2015.01.12.11.21.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jan 2015 11:21:28 -0800 (PST) From: "Lad, Prabhakar" To: LFBDEV , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Maxime Ripard Cc: LKML , "Lad, Prabhakar" Subject: [PATCH] fbdev: ssd1307fb: drop unused function ssd1307fb_write_data() Date: Mon, 12 Jan 2015 19:21:14 +0000 Message-Id: <1421090474-4243-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP this patch drops the unused function ssd1307fb_write_data(). Signed-off-by: Lad, Prabhakar Acked-by: Maxime Ripard --- drivers/video/fbdev/ssd1307fb.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index a7ecaa6..c891f11 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -122,23 +122,6 @@ static inline int ssd1307fb_write_cmd(struct i2c_client *client, u8 cmd) return ret; } -static inline int ssd1307fb_write_data(struct i2c_client *client, u8 data) -{ - struct ssd1307fb_array *array; - int ret; - - array = ssd1307fb_alloc_array(1, SSD1307FB_DATA); - if (!array) - return -ENOMEM; - - array->data[0] = data; - - ret = ssd1307fb_write_array(client, array, 1); - kfree(array); - - return ret; -} - static void ssd1307fb_update_display(struct ssd1307fb_par *par) { struct ssd1307fb_array *array;