From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25551C282C3 for ; Tue, 22 Jan 2019 18:03:51 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D65D021019 for ; Tue, 22 Jan 2019 18:03:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nUfpu6zC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D65D021019 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1gm0OU-0002B3-Eg; Tue, 22 Jan 2019 13:03:26 -0500 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gm0OT-0002Ax-5j for kernelnewbies@kernelnewbies.org; Tue, 22 Jan 2019 13:03:25 -0500 Received: by mail-pg1-x52a.google.com with SMTP id c25so11403383pgb.4 for ; Tue, 22 Jan 2019 10:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=60uwGBHn+zh0uk5/VnvciZU1UCOEPxBtWZ2G4HHt+04=; b=nUfpu6zC5xcdVELN9Z2VajcdawsZ05bXcxVbCB+JMshzH27TTGsnpQzT28eLJiGO8W j+WW1xuCn95+reCtT/eHi6Ce1gUA/a+Nh8qGRoH0ZdAKcF3gCUKRS8pX3U33Tvicey77 KoBcFGLCRrjqynminqRQ7LvZuwqbbLKc0jQFFyg1Y3AWhpuDAm6z+3oC06i29FtjlEbF 9cS+8aX7EaM9bSNj09QuUxh2K4fUiSZwlBZ6hlJGJH1bRfp6QlxYFW0bCPqZohXDESNV /2NsyJinMmCY2TnTg9M912r7hC84Y7vVVrOgN+6L3xX6VQyNlBJ81c195eU0Y6VAuFfQ rNpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=60uwGBHn+zh0uk5/VnvciZU1UCOEPxBtWZ2G4HHt+04=; b=Lla0MLoODz7scyyClWdxWBgxUaceyk8gTWCrjtYcCmsVLkF1qviHmb3951ISic3EAT QvlbqH5oG6Q78x8e+bdebJqn93VgtjCIb6zaThgGOBHUdWOp78kvc0ARng/HNh/VPwdw Lc2YNM5LyxzGbwbOsG3MKaBUZHvOBMHqI8Hg5SUxpJVXYnX906V5xIUVRqCfcPhbjHpm iCVV175bir3zXKQeD6UOnC41Zr2cBV8ePnI6fcwmxS7kGVyE5Blh47L6a9eee+eprNVY ifOU68urxm8P7N2PzvJFOHi156XDRAh2ZPFrWK7I60nxDrh2ne+sr2+AOLIDvMvpvAvA hlhA== X-Gm-Message-State: AJcUuke173TAwzX+iL0Al8NzRtqeETLZlS4Nhuue+yNO9zwCyDiZOY2z hnKHg+PEyq3BWbx1JFPLqbsGewBZ X-Google-Smtp-Source: ALg8bN51IrJgm5evRcWScYmEKJrs+9X/qSmMKKvyohZ/WebBgUuavWos8R0V0gOwWM3fSHZZcEeUDA== X-Received: by 2002:a63:91c1:: with SMTP id l184mr33099883pge.29.1548180203610; Tue, 22 Jan 2019 10:03:23 -0800 (PST) Received: from bhar12345-VirtualBox ([103.110.42.36]) by smtp.gmail.com with ESMTPSA id 62sm19533731pgc.61.2019.01.22.10.03.21 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Jan 2019 10:03:23 -0800 (PST) Date: Tue, 22 Jan 2019 23:33:18 +0530 From: Bharath Vedartham To: kernelnewbies@kernelnewbies.org Subject: drivers: iio: Adding channels to the simple_dummy module Message-ID: <20190122180318.GA21439@bhar.linux> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hey everyone, I am trying to get started with the IIO subsystem by doing the following tasks: https://kernelnewbies.org/IIO_tasks In task 3, which requires us to add 3 channels to the dummy_device, I have added the structures in the dummy_channels array(which is of type struct chan_spec), similar to the other channels in the dummy_channels array.(in file drivers/iio/dummy/iio_simple_dummy.c) I also added elements to the enum iio_simple_dummy_scan_elements for the scan_index val.(in iio_simple_dummy.h) I recompiled the kernel and loaded the modules iio_dummy and iio_dummy_evgen using modprobe. is the right approach. I am not able to see any new channels being added to my /sys/bus/iio/devices/iio:device0/ directory? printk is not printing to dmesg. I put printk in the probe function Thank you, Bharath _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies