Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp885226ybg; Fri, 18 Oct 2019 08:47:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqznGIEse3r43mkRHHYVGplW4IdVYjJNP18d9SjzpnR4J6nM886FKrwoiRiUEJJHGPhZjKh6 X-Received: by 2002:a50:f384:: with SMTP id g4mr10148985edm.282.1571413646884; Fri, 18 Oct 2019 08:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413646; cv=none; d=google.com; s=arc-20160816; b=VxHn3Qd/2NmpYrVOB3B1BxVJ5gQAgKk2uYXUh/M7MMvPs4r/tXZqK5hAkTyTvPURCG iy4zyxOYuSAjlHRfRlnTCYPqy9Vh43cQa1kIrhrOHh5j1s4h2XuXvE+3gRNo66bJZZO8 /kiM4ab6g9AEbBQGHbfnvyb+o0CX9Z9Lq+W8W+lTY57Q/gMXLh0kQ745aG4YGjIuV4gt m/J05LvPm1k7FA4Xwh4i64hJrkdDhrb0vkJYwbdcUJO8TXgUL8wwuRi/Wxu/x78iGHWD 4/py7NBJCDwtm7wJiJZ9oIdaTTJMjZauhn5vuY3nT3XaFhkD5YjWAOgkiU9UN+d2q1BD MISg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=TGt1UZEWqcZi9YT+7fgtBx5eJzJbTWv2BIm+L25kpBw=; b=JpkXDFrokF+nB+mPHVG+7Is8Ua8DyZ4vLPebkUiOUKKtMOlOg5YfQJ5LuUZB/9JW5l Ng6EKCuCfoqtsh4SbzoFkF1RgqYiXrv81/9NvNoilfpi5WySd00WgapHImmuNk+ZblGs ysRls0wHat5JH+ZbrGsoTzcjS89GRj1oAAi4K8iWyBvhLf+LsY6iP+lwACzUUp7iI6fp BRW4GyffvQ22WpNAOH3YjtCpuiKCQ66PKznlKtmYHRH8UgrnrMLzwj9bCnMe40fOeN92 QGwOnmwpZE0fg81m7Jdvy2qbxLODat9U7zqBBs5eFa4MzVkZHDscdQWndYZAwhHK9ugH zgUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=L0Ta2upc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si3838837edb.371.2019.10.18.08.47.03; Fri, 18 Oct 2019 08:47:26 -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=pass header.i=@st.com header.s=STMicroelectronics header.b=L0Ta2upc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406126AbfJQMYM (ORCPT + 99 others); Thu, 17 Oct 2019 08:24:12 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:29160 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728554AbfJQMYL (ORCPT ); Thu, 17 Oct 2019 08:24:11 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9HC6GwX019539; Thu, 17 Oct 2019 14:24:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=TGt1UZEWqcZi9YT+7fgtBx5eJzJbTWv2BIm+L25kpBw=; b=L0Ta2upc63+LesPIf9zpg5X8gjJxtnke98PPYmA2N4SR0CFzxFvDxkBfI5lKQdAIrMQQ /TlLhBkwRrQjhNmawVaYTD3sv0uJ2Lkmq8QBc7tX2le8YWtLQeEbIlWYWyLkBhZDEvKj rMT4KbtUsKV3Z55je4eKqpjNCHehl3ocYOgL4m7vwiD/EZEBV8xaPCwE6S+R6hyT86Gy ljLdE8fP56sKG0hQOWCxtxuVhOMnABJUJ2vwtbEq/9rvjvWD49EOasls/g70j37ayYF2 o5/rKhyjj92iBak0FNBABooiOvipeQ4meet5usgG4o4dnDaBhn4Ad2Qb6ASys9Gio5MZ eQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2vk4a1kt9c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Oct 2019 14:24:05 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0248110002A; Thu, 17 Oct 2019 14:24:05 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E7F832D378B; Thu, 17 Oct 2019 14:24:04 +0200 (CEST) Received: from SFHDAG5NODE3.st.com (10.75.127.15) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 17 Oct 2019 14:24:04 +0200 Received: from SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47]) by SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47%20]) with mapi id 15.00.1473.003; Thu, 17 Oct 2019 14:24:04 +0200 From: Mickael GUENE To: Chuhong Yuan CC: Mauro Carvalho Chehab , "linux-media@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] media: st-mipid02: add a check for devm_gpiod_get_optional Thread-Topic: [PATCH] media: st-mipid02: add a check for devm_gpiod_get_optional Thread-Index: AQHVhBBYvH4VqO4jG0ud7QMMFFTos6deMe0AgAAi54CAAE0LAA== Date: Thu, 17 Oct 2019 12:24:04 +0000 Message-ID: References: <20191016105604.8036-1-hslester96@gmail.com> <8de93390-ae04-4278-bb34-aa175c659c23@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:60.0) Gecko/20100101 Thunderbird/60.8.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.44] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-17_04:2019-10-17,2019-10-17 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGVsbG8gQ2h1aG9uZywNCg0KIFNvcnJ5IEkgbWlzc2VkICdpZiAoUFRSX0VSUihkZXNjKSA9PSAt RU5PRU5UKScgY2hlY2sgLi4uLg0KIENhbiB5b3UgaW4gdGhpcyBjYXNlIGFkZCBhbiBlcnJvciBt ZXNzYWdlID8NCg0KUmVnYXJkcw0KTWlja2FlbA0KIA0KT24gMTAvMTcvMTkgMDk6NDgsIENodWhv bmcgWXVhbiB3cm90ZToNCj4gT24gVGh1LCBPY3QgMTcsIDIwMTkgYXQgMTo0MyBQTSBNaWNrYWVs IEdVRU5FIDxtaWNrYWVsLmd1ZW5lQHN0LmNvbT4gd3JvdGU6DQo+Pg0KPj4gSGVsbG8gQ2h1aG9u ZywNCj4+DQo+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