@@ -78,7 +78,7 @@ static int intel_sha_regs_cpy(void *dst, const void *src, size_t len)
7878}
7979
8080/* ! Perform SHA computation over requested region. */
81- static int intel_sha_device_run (struct device * dev , const void * buf_in , size_t buf_in_size ,
81+ static int intel_sha_device_run (const struct device * dev , const void * buf_in , size_t buf_in_size ,
8282 size_t max_buff_len , uint32_t state )
8383{
8484 int err ;
@@ -177,7 +177,7 @@ static int intel_sha_copy_hash(struct sha_container *const self, void *dst, size
177177 return err ;
178178}
179179
180- static int intel_sha_device_get_hash (struct device * dev , void * buf_out , size_t buf_out_size )
180+ static int intel_sha_device_get_hash (const struct device * dev , void * buf_out , size_t buf_out_size )
181181{
182182 int err ;
183183 struct sha_container * const self = dev -> data ;
@@ -281,7 +281,7 @@ static int intel_sha_compute(struct hash_ctx *ctx, struct hash_pkt *pkt, bool fi
281281 return ret ;
282282}
283283
284- static int intel_sha_device_set_hash_type (struct device * dev , struct hash_ctx * ctx ,
284+ static int intel_sha_device_set_hash_type (const struct device * dev , struct hash_ctx * ctx ,
285285 enum hash_algo algo )
286286{
287287 int ret ;
@@ -313,15 +313,15 @@ static int intel_sha_device_free(const struct device *dev, struct hash_ctx *ctx)
313313 struct sha_container * self = (struct sha_container * const )(dev )-> data ;
314314 struct sha_session * session = (struct sha_session * )ctx -> drv_sessn_state ;
315315
316- (void )memset (self -> dfsha , 0 , sizeof (struct sha_hw_regs ));
316+ (void )memset (( void * ) self -> dfsha , 0 , sizeof (struct sha_hw_regs ));
317317 (void )memset (& session -> sha_ctx , 0 , sizeof (struct sha_context ));
318318 (void )memset (& session -> state , 0 , sizeof (union sha_state ));
319319 session -> in_use = 0 ;
320320 session -> algo = 0 ;
321321 return 0 ;
322322}
323323
324- static int intel_sha_device_init (struct device * dev )
324+ static int intel_sha_device_init (const struct device * dev )
325325{
326326 return 0 ;
327327}
0 commit comments