[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8a731837-b21b-c2ae-fe0f-3c8943b587e3@broadcom.com>
Date: Tue, 2 Apr 2019 18:10:52 -0700
From: Ray Jui <ray.jui@...adcom.com>
To: Wolfram Sang <wsa@...-dreams.de>
Cc: Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>, linux-i2c@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
bcm-kernel-feedback-list@...adcom.com,
Rayagonda Kokatanur <rayagonda.kokatanur@...adcom.com>
Subject: Re: [PATCH v5 7/8] i2c: iproc: add NIC I2C support
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
>
Powered by blists - more mailing lists