Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1864922yba; Tue, 2 Apr 2019 18:12:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6fWV0dxoGy+pcGxKsBhhc/5gbbcmbomQ/X/NT81PhfTrB96y8Kv3pgf4nP2slg7euKSG4 X-Received: by 2002:a17:902:8bca:: with SMTP id r10mr63667721plo.67.1554253920487; Tue, 02 Apr 2019 18:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554253920; cv=none; d=google.com; s=arc-20160816; b=FAIOMpLu/8406wRAsojwJiWj+RxOQwIsshSPgvyyMRcmEQBA5+UtzOGmIpot9xV6n5 0HC15ftHCE8sn2VgHwdNV66BG9CjVArwHCCaifne4xJuVlLtRj/v79dmt4jRvqRUQ+Wr oxbyKINuqilFaYpUn/rZMR0nBatF8oOOcauOX2NMFGLhEdWgxvDVMQs+4L5GXIqkckRu c/vKl1hj8NFzj+dq8emmdFJ/yf4GZyvjy08up8ooKxcS5q6lWfs50bVIUeNpnMLmWHNP W/YNsanJAkVxRXWR0QKgm+faZP6m+qWcRQaL3p4z4qIngTA5tI+htz4NtqgRqnOptClW 7Ofg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=QEwtYD4al19eJmWhOFuud/x7kSg7UeUaV2GJDzUdjNE=; b=wCgNeD/M+tKXOQFnNsIEYF2BzTqiPZBSWEXAO+buzOyOI4Oc07f7K0MdZ73bD7MWml oqdYbdU9hteGbod6T1ZMmIwofs9KEyCVsan5aP7oa9/tm/wvWlFqL4AxawlGDpZDxzfp KFkLUogy8BHhAn+36ky17n4KBp5ep2zSgPES3F6/Gwaari+5Oi5BIMo+WBzGj1JRoDGw jh2hXfJARH0vUhQNr9eaKnxXWTXx+i2rc2ZGpRCFE9BDoZwPV8ZBzvApkKCDyHLpwMlm 9u57aDKq7HtN+oEOClZJmfYOAKoyRmJfd/sH4L92Xdladdqvf2Y+P5eAST9oi7BQvwAD zvNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=TE4RKdrZ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l91si12543628plb.336.2019.04.02.18.11.43; Tue, 02 Apr 2019 18:12:00 -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=@broadcom.com header.s=google header.b=TE4RKdrZ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726542AbfDCBLF (ORCPT + 99 others); Tue, 2 Apr 2019 21:11:05 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43245 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbfDCBLF (ORCPT ); Tue, 2 Apr 2019 21:11:05 -0400 Received: by mail-pg1-f193.google.com with SMTP id z9so7404134pgu.10 for ; Tue, 02 Apr 2019 18:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QEwtYD4al19eJmWhOFuud/x7kSg7UeUaV2GJDzUdjNE=; b=TE4RKdrZtjgSbjw1n4Ul2WCKYOh5d7QTvvpOd/hu71drRWARX94oUj4mI7OBJKbH/u As4XyMltc8TQLwC81RawI1kKZ3zJyRS/UqxBNesY8wmW4EP2NIhfQEVVpRd4bzwcdt0P j7ooTLAOS3tPhkRh5PTShsQ4lNdEzkFtG6ABU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QEwtYD4al19eJmWhOFuud/x7kSg7UeUaV2GJDzUdjNE=; b=pXoJluHHbq8iL8NOgCT2U/jmM+Ep0miXkTIURtIHHZDS39IGwIYiWjjTF185dZaEdA LgyB7lGh0zWt05NAYM7Qpjv4jT5XJW3HIWu2DWEvUWt07MLmlTTmjr8dqS3IP0dQ+ljQ jsIFjIhHsE0QzdH79lQi84VxQpGn6dR8FKi3tyqy1z70xmD+1EtHJfTORBo2xpnDSuKJ MwCun3vL6gH9M0YpIhWX0vRgViHyZCmKhL7GoYQYv033eRGdmv3Py1WDib9m+4ukoUc/ ZH+7EO9Qzz+h9AdoD8p0EHeBwJ8wB/XXdYCWD3HGWZEaKFVt13W/PastVSq6GmFTZY/H EzXg== X-Gm-Message-State: APjAAAUaprdm4trOROnMAxBSa+hlHL4XZU7Afvt8MNVYiJ/d4fwyMX8V cd01ZuRX5rCDO54rAceT1ubJzQ== X-Received: by 2002:a63:2747:: with SMTP id n68mr69021688pgn.317.1554253863796; Tue, 02 Apr 2019 18:11:03 -0700 (PDT) Received: from [10.136.8.252] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id e1sm16507968pfn.187.2019.04.02.18.11.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 18:11:02 -0700 (PDT) Subject: Re: [PATCH v5 7/8] i2c: iproc: add NIC I2C support From: Ray Jui To: Wolfram Sang Cc: Rob Herring , Mark Rutland , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Rayagonda Kokatanur References: <20190214175725.60462-1-ray.jui@broadcom.com> <20190214175725.60462-8-ray.jui@broadcom.com> <20190402102733.GD2960@kunai> Message-ID: <8a731837-b21b-c2ae-fe0f-3c8943b587e3@broadcom.com> Date: Tue, 2 Apr 2019 18:10:52 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/2/2019 10:57 AM, Ray Jui wrote: > > > On 4/2/2019 3:27 AM, Wolfram Sang wrote: [...] >>> + iproc_i2c->type = >>> + (enum bcm_iproc_i2c_type) of_device_get_match_data(&pdev->dev); >> >> No need to cast a void*. >> In fact, we do need to type cast here since 'iproc_i2c->type' is NOT a pointer: drivers/i2c/busses/i2c-bcm-iproc.c:870:18: error: incompatible types when assigning to type ?enum bcm_iproc_i2c_type? from type ?const void *? iproc_i2c->type = of_device_get_match_data(&pdev->dev); ^ > > Yes will fix. > > Thanks, > > Ray >