From: Guenter Roeck <firstname.lastname@example.org>
To: Alexandru Ardelean <email@example.com>
Cc: Alexandru Ardelean <firstname.lastname@example.org>,
Rob Herring <email@example.com>,
firstname.lastname@example.org, "Thoren, Mark" <email@example.com>
Subject: Re: [PATCH v2 2/4] docs: hwmon: (ltc2945): change type of val to ULL in ltc2945_val_to_reg()
Date: Wed, 11 Nov 2020 07:44:01 -0800 [thread overview]
Message-ID: <20201111154401.GA151426@roeck-us.net> (raw)
On Wed, Nov 11, 2020 at 05:28:51PM +0200, Alexandru Ardelean wrote:
> On Wed, Nov 11, 2020 at 4:54 PM Guenter Roeck <firstname.lastname@example.org> wrote:
> > On 11/11/20 1:12 AM, Alexandru Ardelean wrote:
> > > In order to account for any potential overflows that could occur.
> > >
> > > Signed-off-by: Alexandru Ardelean <email@example.com>
> > Thinking about it, this can only really happen if the user provides
> > excessive values for limit attributes. Those are currently clamped
> > later, after the conversion. I think it would be better to modify
> > the code to apply a clamp _before_ the conversion as well instead
> > of trying to solve the overflow problem with unsigned long long.
> > Either case, can you send me a register dump for this chip ?
> I asked Mark to help out on this.
> Right now I don't have a board around my home-office.
> I"m just pulling patches from our own tree to send upstream.
> Is there a specific command you have in mind for this i2cdump?
> Is the output of something like this fine:
> # i2cdump -r 0x00-0x31 1 0x6f
Yes, that should do, assuming the chip is on bus #1, address 0x6f.
next prev parent reply other threads:[~2020-11-11 15:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-11 9:12 [PATCH v2 0/4] hwmon: (ltc2945): add support for sense resistor Alexandru Ardelean
2020-11-11 9:12 ` [PATCH v2 1/4] hwmon: (ltc2945): wrap regmap into an ltc2945_state struct Alexandru Ardelean
2020-11-11 9:12 ` [PATCH v2 2/4] docs: hwmon: (ltc2945): change type of val to ULL in ltc2945_val_to_reg() Alexandru Ardelean
2020-11-11 14:54 ` Guenter Roeck
2020-11-11 15:28 ` Alexandru Ardelean
2020-11-11 15:44 ` Guenter Roeck [this message]
2020-11-18 14:40 ` Alexandru Ardelean
2020-11-18 15:19 ` Guenter Roeck
2020-11-13 7:25 ` kernel test robot
2020-11-11 9:12 ` [PATCH v2 3/4] hwmon: (ltc2945): add support for sense resistor Alexandru Ardelean
2020-11-18 14:43 ` Alexandru Ardelean
2020-11-18 15:21 ` Guenter Roeck
2020-11-11 9:12 ` [PATCH v2 4/4] dt-bindings: hwmon: ltc2945: add device tree doc for ltc2945 Alexandru Ardelean
2020-11-16 17:36 ` Rob Herring
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.