Re: [PATCH] tee: constify tee_driver_ops and tee_desc structures
From: Jens Wiklander
Date: Fri Aug 04 2017 - 04:49:05 EST
On Thu, Aug 3, 2017 at 9:09 PM, Julia Lawall <Julia.Lawall@xxxxxxx> wrote:
> tee_driver_ops structures are only stored in the ops field of tee_desc
> structures, which is const, and in turn tee_desc structures are only passed
> as the first argument of tee_device_alloc, and this argument is const as
> well. Thus the two kinds of structures can be const.
> Done with the help of Coccinelle.
> Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>
This has already been proposed by Bhumika Goyal in a more or less
identical patch. I've already picked up Bhumikas patch and will send
it upstream via arm-soc.