From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EBB143B6F3 for ; Wed, 15 Jul 2026 10:10:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784110256; cv=none; b=jQGrHb/FwvQRoFALEXFAH2FrE9PMCusK/Zeq2nuE2baxlv9edYDSNVDrgPuvfyd/PwF9HeiqLEL8Mdf56u9ao9UeFY02VLiLqSfNRPGI1WE90sskDblwePDq4GK9xdxHnY3h8k8HWIKdvOE/DqMhNQlYLxM7DzuX7ey7vRuje4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784110256; c=relaxed/simple; bh=JfYz53bJftYARTtQYbhdqLN88JZ2JOJLHjD7XhU/M28=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=krHuNqe4kYrlKidP1wCYcJDYeuu6US4cBh6N9xTVX3Tp0ZRK9Z2BDMopl0m8pUyIoTmkwy3U+7We7oqPguAys0JMmiCsLveFKhJ8CePHhMijV+BSULeEJeyTrfqLE5Y4gfYYWehUXmahp2Bt9d3yix1JW5zHhlvw9bsLQr7oZok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gsgTIL4z; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gsgTIL4z" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-3810c5d691bso4120965a91.1 for ; Wed, 15 Jul 2026 03:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784110254; x=1784715054; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=qXsDMJk4sPduicJj2EHttKleB6YVypYjBplsn4iN7vc=; b=gsgTIL4zwpApVfT6HCU0JKqVU+0QY8d0qYYGeA200W+gN5NfyuMbVYbjufWuo9RSZ3 tvP4CmCzTTsNb/GPxtOaeN+58CyR67kaic9bNgmg08SQnAGD9QYp5ykCfdCj1+MbIhC6 zKO3T9NA8XjWelrKKgYIfQa6CP+BGFRl756o/E3fZoOFvP+NnoXce4QZtgKN+WQLPDOk bmpuksMkd1r5abRUNs1K+zN8NTRrYiMFxB7syV4VR9Zf9qOysrRiyg/Yy0tUEIWnEl7i zu8PZyjKEb+32vvku+L6YlPSi1ovc7J92vXGb1qn1qUrNNLdfd0xR+CIYTRPq2UnnyrN 29/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784110254; x=1784715054; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qXsDMJk4sPduicJj2EHttKleB6YVypYjBplsn4iN7vc=; b=oUOsYTC6aBs+g9emSliDIMJtu195G8CMQnhIRlMDQ6UFoPzV38at4RpyjJso9axduh lWOD9/KiKxVmJ30jes4fcDjn+fF8BiiRf3/gDHunMkuHmw7qwynJiEwrfEpZ0zyAhTe9 EF24xSI+nQcHYFOry3fBkwaAi+2ohqv88AA5uisknVPGq4CLSlnE3zqbGnKSA6xyRJ0c IF+SPouyUxFLgV2EngfW7eqJODjEf2LUDBhtZWevcp/lWs5VwHkPPkf9lAdEhLrDk1U0 HSc9fLGfsmAs/5Z3XaVR2q0FeG234nTPJMZFhNwaUgOy5kWxxRj/TtLzdwhidFLmwYFP umlQ== X-Forwarded-Encrypted: i=1; AHgh+RpuVL4tP8qxurM+PnEzsNrAQ32a6+SHvmUuR/xdcfSE7DdOL9Ukdj0CgCfyd2NSWqX6fuW+61GmNMtb8EA=@vger.kernel.org X-Gm-Message-State: AOJu0YwtbfXWppfJCMo4hpccwuGaJLL7ZheZndsdkOww0pIsVdYCe7ir TOFMV0adUT/p18xvmVaVGFJmUPXOa9JJGEmjzK38JPCbgSRAp8wV9rIg X-Gm-Gg: AfdE7ckGZcXDjx7CzPGygD33vDpll3mHoraDPN980s1umvGeUuMD9rVRfkiXHCMW1lM dkE4M2kBH/S01swc1Lv2HMKcHg2FFsfP1dWqzt2nTOnHXKsXlA92fTMBUbA2/STd5ad6/qNdEFd YPqzRgOWW5qJHpKe6stUp8g0uHjyBvA99CXO+45kc9wuKZDRb+kDMrot78gbKaejUT/iLSz1lzV +C9pYXVbqoIjUv5mpKqyuTCw9YkXjqKlo6VpLGJTYm8hzCowXFg5Ha0QBccTeV0IYUpybd+o+3d aOw9xV89nK77JDMLlabI3/WwqcwA9w0xF8XzigfXPGX7QXaYYqoUnmlV71hFxorN26re8s2h+dL UYjbGVeXdS9bi5BuO89xZGiay0+SLFt3XGDpmTbccCKUhWxSQElN+87m/tnn2jQ+0aspMHZ81JC wCt7uEQVqOcj3opPFoPYHabO8LxgmvHz9+38Lcek2j X-Received: by 2002:a17:90b:2544:b0:38e:408:9d7d with SMTP id 98e67ed59e1d1-38e1af44e01mr6101942a91.36.1784110253968; Wed, 15 Jul 2026 03:10:53 -0700 (PDT) Received: from primary ([223.181.23.34]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3119c2a7bb5sm62079757eec.25.2026.07.15.03.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2026 03:10:53 -0700 (PDT) From: Vidhu Sarwal To: Jonathan Cameron Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Per-Daniel Olsson , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linux.dev, Vidhu Sarwal Subject: [PATCH 0/3] iio: light: opt4060: Fix integration time, pointer type and error message Date: Wed, 15 Jul 2026 06:45:41 +0530 Message-ID: <20260715011544.281148-1-vidhu.linux@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series fixes three issues in the opt4060 driver, all of which have been present since the driver was introduced. Patch 1 rejects integration time writes with a non-zero seconds part. Previously, opt4060_write_raw() only considered the microseconds component, so values such as 1.000600 were accepted and programmed as 600 us. Patch 2 fixes a pointer type mismatch in the call to div_u64_rem(). This is a type cleanliness fix and does not change runtime behaviour. Patch 3 corrects a error in an error message that reported the wrong threshold register when a register read failed. The first 2 patches are similar to recently submitted patches on it's sister driver OPT4001 [1]. Patch 3 is specific to opt4060. [1]: https://lore.kernel.org/all/20260714113134.3445-1-nikhilgtr@gmail.com/ Vidhu Sarwal (3): iio: light: opt4060: Reject integration times with a non-zero seconds part iio: light: opt4060: Fix pointer type passed to div_u64_rem() iio: light: opt4060: Fix incorrect register name in threshold read error message drivers/iio/light/opt4060.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) base-commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa -- 2.53.0