From patchwork Sun Oct 13 09:15:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11187321 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 02CBA912 for ; Sun, 13 Oct 2019 09:17:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB6CE20673 for ; Sun, 13 Oct 2019 09:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570958268; bh=JECmuRCuHq5fRgFVCXoMoJ282oNADMRbopeZTR+KVSo=; h=From:To:Cc:Subject:Date:List-ID:From; b=Z8lHEBGN+VVFRsLGTYSq/W39a3SKwCgH6AiRL6NrEhXQYNiAFrRx7CDqycTK08Ef8 CR3mSbIUQIBm3/nI7rAH4KCtTrJ5YAH9fWoh5pgnbCuPRwWpnuoUk+nHhbI3AXVgB1 G/p0eIrbcQLtpee7DJLCEDZn6AT2wfK5jMZU+6VY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728408AbfJMJRq (ORCPT ); Sun, 13 Oct 2019 05:17:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:45134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728311AbfJMJRq (ORCPT ); Sun, 13 Oct 2019 05:17:46 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D1B4420659; Sun, 13 Oct 2019 09:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570958265; bh=JECmuRCuHq5fRgFVCXoMoJ282oNADMRbopeZTR+KVSo=; h=From:To:Cc:Subject:Date:From; b=pSrhF8GaET2awhaZNuiWptbsn8zn5qqBnbV1bxUn+7iM75ej0l7EoyNA78r4+pzCr AbF5YNs2T79XZcOXbCd2AOZsLpy4Y2afxq1xQJNNh6VvQzHmz6yXYL7fseQk6EYO6u C6WIn9y0HP2IX0RsXTicfMeIUntWBA0VXBUo6V5I= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Philippe Schenker Subject: [PATCH] iio:adc:stmpe-adc: Cleanup endian type of local variable Date: Sun, 13 Oct 2019 10:15:41 +0100 Message-Id: <20191013091541.1382009-1-jic23@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Nothing stops data being of type __be16, which fixes the warning: CHECK drivers/iio/adc/stmpe-adc.c drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16 drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16 drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16 drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16 Signed-off-by: Jonathan Cameron Cc: Philippe Schenker Reviewed-by: --- drivers/iio/adc/stmpe-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/stmpe-adc.c b/drivers/iio/adc/stmpe-adc.c index bd72727fc417..0f88048ea48f 100644 --- a/drivers/iio/adc/stmpe-adc.c +++ b/drivers/iio/adc/stmpe-adc.c @@ -175,7 +175,7 @@ static int stmpe_read_raw(struct iio_dev *indio_dev, static irqreturn_t stmpe_adc_isr(int irq, void *dev_id) { struct stmpe_adc *info = (struct stmpe_adc *)dev_id; - u16 data; + __be16 data; if (info->channel <= STMPE_ADC_LAST_NR) { int int_sta;