From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C071C4360C for ; Sun, 13 Oct 2019 10:05:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40E33206B7 for ; Sun, 13 Oct 2019 10:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570961101; bh=ul0ea144YkbbpdGwY5NIxh6t/dhmfGD0euBqYGbBvJ4=; h=From:To:Cc:Subject:Date:List-ID:From; b=dYio0W6i2cQPWaj/Utu0OzzTs+9ermdGMz7MzWidDLU3JtAADcvm1cReNQBAQ5/Zo 4QOD/UvF+j2ULUx2XUzA8ILYPnrNhJDHTnNyvl57vrY9arJziVk3vS/Kw0l3Bs0EUE aAQ4WAtsQmxSsDEwqGmcyglKWkOAAN8xnO1M1e8g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728848AbfJMKFA (ORCPT ); Sun, 13 Oct 2019 06:05:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:51362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728839AbfJMKFA (ORCPT ); Sun, 13 Oct 2019 06:05:00 -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 20B7920659; Sun, 13 Oct 2019 10:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570961100; bh=ul0ea144YkbbpdGwY5NIxh6t/dhmfGD0euBqYGbBvJ4=; h=From:To:Cc:Subject:Date:From; b=RZJtPYcrPB9culf2NM3RJYEDD4ATzZhvefKR7dPvGRYeCMGiXcY7Gj5QESUMCpEAM 6RE8nlTP+uJP3dFJPTQQ8+9KPcjWbuxiFZKGRNTqaBxFxvzEL7p1XI4MSZGqkEOPPf /47HYMdNTI8wv9sUKxae23Y9wHuTx4JL7s63F9ww= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Linus Walleij Subject: [PATCH] iio: gyro: mpu3050: Explicity make a 'poison' value big endian Date: Sun, 13 Oct 2019 11:02:55 +0100 Message-Id: <20191013100255.1445528-1-jic23@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron This clearly has no actual affect but it does show sparse and similar static analysers that we are doing this intentionally. CHECK drivers/iio/gyro/mpu3050-core.c drivers/iio/gyro/mpu3050-core.c:546:48: warning: incorrect type in assignment (different base types) drivers/iio/gyro/mpu3050-core.c:546:48: expected restricted __be16 drivers/iio/gyro/mpu3050-core.c:546:48: got int Signed-off-by: Jonathan Cameron Cc: Linus Walleij --- drivers/iio/gyro/mpu3050-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/gyro/mpu3050-core.c b/drivers/iio/gyro/mpu3050-core.c index 80154bca18b6..8e908a749f95 100644 --- a/drivers/iio/gyro/mpu3050-core.c +++ b/drivers/iio/gyro/mpu3050-core.c @@ -543,7 +543,7 @@ static irqreturn_t mpu3050_trigger_handler(int irq, void *p) toread = bytes_per_datum; offset = 1; /* Put in some dummy value */ - fifo_values[0] = 0xAAAA; + fifo_values[0] = cpu_to_be16(0xAAAA); } ret = regmap_bulk_read(mpu3050->map, -- 2.23.0