Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030673AbeAONmp (ORCPT + 1 other); Mon, 15 Jan 2018 08:42:45 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:28207 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966600AbeAONm1 (ORCPT ); Mon, 15 Jan 2018 08:42:27 -0500 From: Philippe CORNU To: Andrzej Hajda , Daniel Vetter , Gustavo Padovan , Sean Paul , David Airlie , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" CC: Archit Taneja , Brian Norris , Benjamin Gaignard , Yannick FERTRE , Vincent ABRIOU , Alexandre TORGUE Subject: Re: [PATCH] drm/dsi: Fix improper use of mipi_dsi_device_transfer() return value Thread-Topic: [PATCH] drm/dsi: Fix improper use of mipi_dsi_device_transfer() return value Thread-Index: AQHTjeD0LPdZC8KntEWp5Lg5yl7nk6N04LcA Date: Mon, 15 Jan 2018 13:42:00 +0000 Message-ID: <4ee77a69-321e-11d0-77fa-4adb9f6ef3d1@st.com> References: <20180112144847.18810-1-philippe.cornu@st.com> In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.48] Content-Type: text/plain; charset="utf-8" Content-ID: <79C6934105965D4FBA46E69FB688F4CB@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-15_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: SGkgQW5kcnplaiwNCg0KT24gMDEvMTUvMjAxOCAxMDoxMiBBTSwgQW5kcnplaiBIYWpkYS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