From patchwork Fri Dec 8 17:41:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Br=C3=BCns?= X-Patchwork-Id: 10103077 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 18B0360329 for ; Fri, 8 Dec 2017 17:43:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3B4D28E42 for ; Fri, 8 Dec 2017 17:43:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E85E728E50; Fri, 8 Dec 2017 17:43:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93A0D28E42 for ; Fri, 8 Dec 2017 17:43:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753382AbdLHRm7 (ORCPT ); Fri, 8 Dec 2017 12:42:59 -0500 Received: from mail-out-1.itc.rwth-aachen.de ([134.130.5.46]:17343 "EHLO mail-out-1.itc.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753053AbdLHRmO (ORCPT ); Fri, 8 Dec 2017 12:42:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CKBQAgzipa/54agoZcHAEBAQQBAQoBA?= =?us-ascii?q?YM+ggEHg3uZIYFXmUcKhTsChF9DFAEBAQEBAQEBAWsohSMGIw8BRhAlAiYCAlc?= =?us-ascii?q?GDgWKKASoLoIniEmCGgEBAQEGAQEBAQEjCQGBBYJMgguDaAuIYoJJgmMFowiBE?= =?us-ascii?q?KAah1eWLwICAgIJAhqBOzYigU9wgneCUhyBaHeJIQGBFAEBAQ?= X-IPAS-Result: =?us-ascii?q?A2CKBQAgzipa/54agoZcHAEBAQQBAQoBAYM+ggEHg3uZIYF?= =?us-ascii?q?XmUcKhTsChF9DFAEBAQEBAQEBAWsohSMGIw8BRhAlAiYCAlcGDgWKKASoLoIni?= =?us-ascii?q?EmCGgEBAQEGAQEBAQEjCQGBBYJMgguDaAuIYoJJgmMFowiBEKAah1eWLwICAgI?= =?us-ascii?q?JAhqBOzYigU9wgneCUhyBaHeJIQGBFAEBAQ?= X-IronPort-AV: E=Sophos;i="5.45,378,1508796000"; d="scan'208";a="28229264" Received: from rwthex-w2-a.rwth-ad.de ([134.130.26.158]) by mail-in-1.itc.rwth-aachen.de with ESMTP; 08 Dec 2017 18:42:01 +0100 Received: from pebbles.fritz.box (78.48.176.14) by rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.26; Fri, 8 Dec 2017 18:42:00 +0100 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= To: CC: Peter Meerwald-Stadler , =?UTF-8?q?Stefan=20Br=C3=BCns?= , Maciej Purski , , "Andrew F . Davis" , Lars-Peter Clausen , Jonathan Cameron , Hartmut Knaack , "Javier Martinez Canillas" Subject: [PATCH v1 1/7] iio: adc: ina2xx: Remove bogus cast for data argument Date: Fri, 8 Dec 2017 18:41:46 +0100 X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171208174152.30341-1-stefan.bruens@rwth-aachen.de> References: <20171208174152.30341-1-stefan.bruens@rwth-aachen.de> MIME-Version: 1.0 X-Originating-IP: [78.48.176.14] X-ClientProxiedBy: rwthex-w3-a.rwth-ad.de (2002:8682:1aa2::8682:1aa2) To rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) Message-ID: <03d5c78a-96c2-4f6d-9333-8d5a0e590745@rwthex-w2-a.rwth-ad.de> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP iio_push_to_buffers_with_timestamp expects a void pointer, so the cast is both unnecessary and misleading. Signed-off-by: Stefan BrĂ¼ns --- drivers/iio/adc/ina2xx-adc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index ddf878163bf9..3195f8754c3b 100644 --- a/drivers/iio/adc/ina2xx-adc.c +++ b/drivers/iio/adc/ina2xx-adc.c @@ -767,8 +767,7 @@ static int ina2xx_work_buffer(struct iio_dev *indio_dev) time_b = iio_get_time_ns(indio_dev); - iio_push_to_buffers_with_timestamp(indio_dev, - (unsigned int *)data, time_a); + iio_push_to_buffers_with_timestamp(indio_dev, data, time_a); return (unsigned long)(time_b - time_a) / 1000; };