Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570779 > unrolled thread

Re: [PATCH] i2c: busses: constify i2c_algorithm structures

Started byJean Delvare <jdelvare@suse.de>
First post2017-01-31 15:30 +0100
Last post2017-01-31 15:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] i2c: busses: constify i2c_algorithm structures Jean Delvare <jdelvare@suse.de> - 2017-01-31 15:30 +0100

#1570779 — Re: [PATCH] i2c: busses: constify i2c_algorithm structures

FromJean Delvare <jdelvare@suse.de>
Date2017-01-31 15:30 +0100
SubjectRe: [PATCH] i2c: busses: constify i2c_algorithm structures
Message-ID<t5HBw-1Ll-15@gated-at.bofh.it>
On Fri, 27 Jan 2017 23:36:17 +0530, Bhumika Goyal wrote:
> Declare i2c_algorithm structures as const as they are only stored in the
> algo field of an i2c_adapter structure. This field is of type const, so
> i2c_algorithm structures having this property can be made const too.
> (...)

I have vague memories that I tried to do the same long ago and it
didn't work back then. But I can't no longer remember the details, and
today it seems just fine to do it.

Reviewed-by: Jean Delvare <jdelvare@suse.de>

-- 
Jean Delvare
SUSE L3 Support

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web