Re: [PATCH v3 4/4] staging: sm750fb: deduplicate fbinfo loop in suspend/resume

From: Ahmet Sezgin Duran

Date: Tue Jul 07 2026 - 07:54:29 EST


On 7/7/26 12:09 PM, Greg KH wrote:
On Mon, May 25, 2026 at 08:58:08AM +0000, Ahmet Sezgin Duran wrote:
lynxfb_suspend() and lynxfb_resume() both walk sm750_dev->fbinfo[]
via duplicated per-index blocks for fbinfo[0] and fbinfo[1].

Replace each pair of blocks with a for-loop bounded by
sm750_dev->fb_count, the number of successfully registered
framebuffers.

No functional changes intended.

Do you have the hardware to test changes like this?


thanks,

greg k-h
No, I don't have the hardware. Just compile tested.

Though, I should mention that compiled object file (sm750.o) is identical in my dev machine, sha256sum matches.

Regards,
Ahmet Sezgin Duran