Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3039635imm; Mon, 16 Jul 2018 20:22:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfYnwBjqnLpHj35D7PFAY7gP2t5pJW5HkTnpNF4zMBQhjfDgZTq5pJPkHR7mcomgENRV8Cx X-Received: by 2002:a62:e813:: with SMTP id c19-v6mr20457835pfi.124.1531797772249; Mon, 16 Jul 2018 20:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531797772; cv=none; d=google.com; s=arc-20160816; b=acryA/0ufU/SvP+c5NswxirwNOQ4MT5NL7tPx8swafwfwaFvr93+6gOaFHESsCRlSB k7crKebo5aSIAAhqJwSpmVgdy3v5HMrP+YmWXR432X5RmIVE+4HUAU1kNpZlRzW7zLYV EGOry7YsMIpM9gbBoLWPk1TDQH85kp84p3XtK/V/23N3+KCEat6rvo75s+ArKFlFZgm1 VP5340lqFu9DtxQ3NNyJwbvkyWzh5NN85tT4jDjP1GVKI6kUFX3C2CFY+SoCJEWIADu7 Vs1aCLG90QHQGD/Gp5mo8rCXQIDWyUgNX9yL3MePSBdgY+7BU0r0RV2OnfzknSBQf8Kh biQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ETlNqQYXbQxJqETHsGE2g1O1rdX9QJplc7dX4SJSXIg=; b=hXR9uRRv1jFV6Azsn7B2S15tl+ftfWqhW5Uq+iGq+UOCcqSrPvGkoFXlBri2KeCDKC 6N1znpPYK9otN0rv8QowRUktaEcGVjrG21zAx6lSZ7z5JL0RcRFE/qU01z0UR150VsJi iVxfhE2buaX/BKNZoYa5z5kO4ovUsOzJD9z1xbOGXxNgsQu6RsSq2Uo9sKnAkroMpcJC NJ9jYsCdQoRy8IXg5FsoEvKK66gu+wQRK2KYbjoHA7Uy0jX2y+UTAriAKUwDvsYIvWGs t+1tdBpQf5mIvxfutL37EsKQoo0ebkCVyP5gizBqt+qaMS2Cubif42C/Q/hQuDjb31gW e5qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=RM3erbjG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17-v6si29413591pgp.14.2018.07.16.20.22.37; Mon, 16 Jul 2018 20:22:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=RM3erbjG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730232AbeGQDvj (ORCPT + 99 others); Mon, 16 Jul 2018 23:51:39 -0400 Received: from vern.gendns.com ([206.190.152.46]:35635 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729952AbeGQDvj (ORCPT ); Mon, 16 Jul 2018 23:51:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ETlNqQYXbQxJqETHsGE2g1O1rdX9QJplc7dX4SJSXIg=; b=RM3erbjGSo7AwMbIFHZ92blvQ 9AZD5g1QGzC5pD6NV7chisSX+KPKwW2nrfxRKapaXFCVWyDNBFvRwWO0rzKYf3CNetllfPT7WJr/o ZVXqoX5t/OVw9OTc87RY3W4zpcT/Lhvc6nMv7YBDMcjAkWwoMCoO+BdZ6mUIr2YcmJqsA5EpEW5Mn KfQhGpCo7kyzTSLJnuzVq1VYbfzJRNsZd7jQ03mgj8vd97cBncRCRCco8R4rq2CMOPF1O0lxamxsE bxocoltP6uKCRzh6uo10rCq0pA3OjKmpJ2rhtGi7ZhUE0QnSgJ0wpFu3lBceP2OfduaS6BbwsXJgj SQy1pUW5w==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:53228 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1ffGY5-00CnnZ-LQ; Mon, 16 Jul 2018 23:21:13 -0400 From: David Lechner To: linux-spi@vger.kernel.org, linux-iio@vger.kernel.org Cc: David Lechner , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 1/4] spi: spi-bitbang: change flags from u8 to u16 Date: Mon, 16 Jul 2018 22:20:49 -0500 Message-Id: <20180717032052.12273-2-david@lechnology.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180717032052.12273-1-david@lechnology.com> References: <20180717032052.12273-1-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This changes the data type of the flags field in struct spi_bitbang from u8 to u16. This matches the size of the mode field of struct spi_device where these flags are also used. This is done in preparation of adding a new SPI mode flag that will be used with this field that would otherwise not fit in 8 bits. Signed-off-by: David Lechner --- include/linux/spi/spi_bitbang.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/spi/spi_bitbang.h b/include/linux/spi/spi_bitbang.h index 51d8c060e513..c1e61641a7f1 100644 --- a/include/linux/spi/spi_bitbang.h +++ b/include/linux/spi/spi_bitbang.h @@ -8,7 +8,7 @@ struct spi_bitbang { struct mutex lock; u8 busy; u8 use_dma; - u8 flags; /* extra spi->mode support */ + u16 flags; /* extra spi->mode support */ struct spi_master *master; -- 2.17.1